From: Simon McVittie Date: Sun, 21 Sep 2008 17:25:06 +0000 (+0100) Subject: remove: redirect via urlto(), avoiding mentions of index.html X-Git-Tag: 2.66~67^2 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/7f8259441058b16db1fd8dc2c6a53827a46794d8?hp=02923917c85a60aa5475c923606685a2acd36125 remove: redirect via urlto(), avoiding mentions of index.html --- diff --git a/IkiWiki/Plugin/remove.pm b/IkiWiki/Plugin/remove.pm index 9666408bc..b1cb6233d 100644 --- a/IkiWiki/Plugin/remove.pm +++ b/IkiWiki/Plugin/remove.pm @@ -207,7 +207,7 @@ sub sessioncgi ($$) { #{{{ if (! exists $pagesources{$parent}) { $parent="index"; } - IkiWiki::redirect($q, $config{url}."/".htmlpage($parent)); + IkiWiki::redirect($q, urlto($parent, '/', 1)); } } else {