]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/goto.pm
add separate template variable for tag page and sanitize displayed tag name
[git.ikiwiki.info.git] / IkiWiki / Plugin / goto.pm
index 2e2dc04a111a164745fb628785b509d40e024e6c..03bd682b3fed5114d6d43a52d603feb6c3e11348 100644 (file)
@@ -14,6 +14,7 @@ sub getsetup () {
                plugin => {
                        safe => 1,
                        rebuild => 0,
                plugin => {
                        safe => 1,
                        rebuild => 0,
+                       section => "web",
                }
 }
 
                }
 }
 
@@ -51,7 +52,8 @@ sub cgi_goto ($;$) {
 
        if (! length $link) {
                IkiWiki::cgi_custom_failure(
 
        if (! length $link) {
                IkiWiki::cgi_custom_failure(
-                       $q->header(-status => "404 Not Found"),
+                       $q,
+                       "404 Not Found",
                        IkiWiki::misctemplate(gettext("missing page"),
                                "<p>".
                                sprintf(gettext("The page %s does not exist."),
                        IkiWiki::misctemplate(gettext("missing page"),
                                "<p>".
                                sprintf(gettext("The page %s does not exist."),