comments: Fix cache avoidance hack.
authorJoey Hess <joey@gnu.kitenet.net>
Wed, 7 Jan 2009 16:12:32 +0000 (11:12 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Wed, 7 Jan 2009 16:12:32 +0000 (11:12 -0500)
The ?updated needs to come before the #anchor or browsers will not follow
the anchor.

IkiWiki/Plugin/comments.pm
debian/changelog

index 1c10417c389cf4aedc11d0f9d510eaa134ff8b32..3a0465dbb833fd0485d133bb39ee3ebc1daebf46 100644 (file)
@@ -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 {
index 55eb4be0b3210d6b2be4d62eb5e07d78cc4fd55d..f4f9df041a2be73cb5ef6454960679a9b48753cd 100644 (file)
@@ -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 <joeyh@debian.org>  Tue, 06 Jan 2009 15:02:52 -0500