diff options
author | Simon McVittie <smcv@debian.org> | 2010-11-23 00:00:11 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2010-11-23 00:00:11 +0000 |
commit | d2e3741a6f289bd25b75683990a0548f41661a85 (patch) | |
tree | d72f26e01b7bcc34acb12a43556ccd8ac062ab27 /IkiWiki/Plugin/comments.pm | |
parent | 70bdd57899294fffd30077b7518ba23710c9d55b (diff) | |
download | ikiwiki-d2e3741a6f289bd25b75683990a0548f41661a85.tar ikiwiki-d2e3741a6f289bd25b75683990a0548f41661a85.tar.gz |
Use local paths for redirection where possible
Diffstat (limited to 'IkiWiki/Plugin/comments.pm')
-rw-r--r-- | IkiWiki/Plugin/comments.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/comments.pm b/IkiWiki/Plugin/comments.pm index a39dab36c..eefd65741 100644 --- a/IkiWiki/Plugin/comments.pm +++ b/IkiWiki/Plugin/comments.pm @@ -386,7 +386,7 @@ sub editcomment ($$) { if ($form->submitted eq CANCEL) { # bounce back to the page they wanted to comment on, and exit. # CANCEL need not be considered in future - IkiWiki::redirect($cgi, urlto($page, undef, 1)); + IkiWiki::redirect($cgi, urlto($page, undef)); exit; } @@ -552,7 +552,7 @@ sub editcomment ($$) { # 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). + IkiWiki::redirect($cgi, urlto($page, undef). "?updated#".page_to_id($location)); } |