jump to comments anchor after post

Not ideal, it would be nicer to jump to the actual comment posted, but no
anchor is available.
master
Joey Hess 2008-12-17 20:29:55 -05:00
parent 339bfbd44a
commit 81165dd2e0
1 changed files with 2 additions and 1 deletions

View File

@ -500,7 +500,8 @@ sub sessioncgi ($$) {
error($conflict) if defined $conflict; error($conflict) if defined $conflict;
# Bounce back to where we were, but defeat broken caches # Bounce back to where we were, but defeat broken caches
my $anticache = "?updated=$page/$config{comments_pagename}$i"; # and jump to the comments anchor.
my $anticache = "?updated=$page/$config{comments_pagename}$i#comments";
IkiWiki::redirect($cgi, urlto($page, undef, 1).$anticache); IkiWiki::redirect($cgi, urlto($page, undef, 1).$anticache);
} }
else { else {