From: Simon McVittie Date: Sat, 31 Jan 2009 14:48:44 +0000 (+0000) Subject: CGI: if the "do" parameter is goto, recentchanges_link or commenter, redirect to... X-Git-Tag: 3.04~86^2~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=18f4aeffb1841f8b455a5e31811695102262a06a;p=ikiwiki.git CGI: if the "do" parameter is goto, recentchanges_link or commenter, redirect to a page This can replace equivalent functionality in comments and recentchanges. --- diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index a6b485edb..949390e68 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -358,7 +358,12 @@ sub cgi (;$$) { error("\"do\" parameter missing"); } } - + + if ($do eq 'goto' || $do eq 'recentchanges_link' || + $do eq 'commenter') { + cgi_goto($q); + } + # Need to lock the wiki before getting a session. lockwiki(); loadindex();