From 551544663db939c8eb32dd78ad74e1514589be25 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 7 Jan 2009 11:12:32 -0500 Subject: comments: Fix cache avoidance hack. The ?updated needs to come before the #anchor or browsers will not follow the anchor. --- IkiWiki/Plugin/comments.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki/Plugin') 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 { -- cgit v1.2.3