aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-01-07 11:12:32 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-01-07 11:12:32 -0500
commit551544663db939c8eb32dd78ad74e1514589be25 (patch)
treec888813ec3fc72019ff2e243d197588dbc3c841d /IkiWiki
parent1c2da36274b6dba4e8bb25b71a102c0a72a2a562 (diff)
downloadikiwiki-551544663db939c8eb32dd78ad74e1514589be25.tar
ikiwiki-551544663db939c8eb32dd78ad74e1514589be25.tar.gz
comments: Fix cache avoidance hack.
The ?updated needs to come before the #anchor or browsers will not follow the anchor.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/comments.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm
index 1c10417c3..3a0465dbb 100644
--- a/IkiWiki/Plugin/comments.pm
+++ b/IkiWiki/Plugin/comments.pm
@@ -508,7 +508,7 @@ sub sessioncgi ($$) {
# Jump to the new comment on the page.
# The trailing question mark tries to avoid broken
# caches and get the most recent version of the page.
- IkiWiki::redirect($cgi, urlto($page, undef, 1)."#$location?updated");
+ IkiWiki::redirect($cgi, urlto($page, undef, 1)."?updated#$location");
}
else {