(no commit message)
[git.ikiwiki.info.git] / IkiWiki / Plugin / goto.pm
index 7cc8cb4840f42ec8817ad1ae0a9cec726694b9f0..06ec0bdca476d8d99640358660c5454c5462e426 100644 (file)
@@ -38,7 +38,7 @@ sub cgi_goto ($;$) {
        # permalink. Comments do.
        if (IkiWiki::isinternal($page) &&
            defined $pagestate{$page}{meta}{permalink}) {
-               redirect($q, $pagestate{$page}{meta}{permalink});
+               IkiWiki::redirect($q, $pagestate{$page}{meta}{permalink});
        }
 
        my $link = bestlink("", $page);