From: Joey Hess Date: Wed, 7 Jan 2009 16:12:32 +0000 (-0500) Subject: comments: Fix cache avoidance hack. X-Git-Tag: 3.02~61 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=551544663db939c8eb32dd78ad74e1514589be25;p=ikiwiki.git comments: Fix cache avoidance hack. The ?updated needs to come before the #anchor or browsers will not follow the anchor. --- 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 { diff --git a/debian/changelog b/debian/changelog index 55eb4be0b..f4f9df041 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,7 @@ ikiwiki (3.02) UNRELEASED; urgency=low * table: Fix misparsed links in external files. * table: Find links in external files in scan pass. * rename: Show full names of affected pages. + * comments: Fix cache avoidance hack. -- Joey Hess Tue, 06 Jan 2009 15:02:52 -0500