X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/cd7ac8f72a43a53aeca3b5e8daf906e990420016..81165dd2e079fac822eaefacafaaa612524b3aa6:/IkiWiki/Plugin/comments.pm?ds=sidebyside diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm index cb5a517a1..2ca2d0a1d 100644 --- a/IkiWiki/Plugin/comments.pm +++ b/IkiWiki/Plugin/comments.pm @@ -36,7 +36,7 @@ sub getsetup () { }, comments_pagespec => { type => 'pagespec', - example => 'blog/* and *!/Discussion', + example => 'blog/* and !*/Discussion', description => 'PageSpec of pages where comments are allowed', link => 'ikiwiki/PageSpec', safe => 1, @@ -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 {