editpage, comment: Clean up title when editing or creating a page or comment.
[ikiwiki.git] / IkiWiki / Plugin / comments.pm
index 68ac4cfae4844dd7de3b44e7af9956d00ab3ac75..63e9ab499bde535b1b5524219f22e8cf8d131e63 100644 (file)
@@ -375,7 +375,7 @@ sub editcomment ($$) {
        my $baseurl = urlto($page);
 
        $form->title(sprintf(gettext("commenting on %s"),
-                       IkiWiki::pagetitle($page)));
+                       IkiWiki::pagetitle(IkiWiki::basename($page))));
 
        $form->tmpl_param('helponformattinglink',
                htmllink($page, $page, 'ikiwiki/formatting',