From: Joey Hess Date: Thu, 18 Dec 2008 01:29:55 +0000 (-0500) Subject: jump to comments anchor after post X-Git-Tag: 2.71~64 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/81165dd2e079fac822eaefacafaaa612524b3aa6?ds=inline;hp=-c jump to comments anchor after post Not ideal, it would be nicer to jump to the actual comment posted, but no anchor is available. --- 81165dd2e079fac822eaefacafaaa612524b3aa6 diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm index db829f344..2ca2d0a1d 100644 --- a/IkiWiki/Plugin/comments.pm +++ b/IkiWiki/Plugin/comments.pm @@ -500,7 +500,8 @@ sub sessioncgi ($$) { error($conflict) if defined $conflict; # 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); } else {