beautify url recentchanges_link redirs to
authorJoey Hess <joey@kodama.kitenet.net>
Fri, 11 Jul 2008 13:44:47 +0000 (09:44 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Fri, 11 Jul 2008 13:44:47 +0000 (09:44 -0400)
This ensures that the same link is reached as is used on pages,
so browsers will know that the link on pages has been visited, and color it
appropriately.

IkiWiki/Plugin/recentchanges.pm

index f4f9ca348d84a569e866a3cfd33837a24d664a0c..bc069fbf258eb8669b01c0b930e8cb8cb0fdbb70 100644 (file)
@@ -80,7 +80,7 @@ sub cgi ($) { #{{{
                                "</p>");
                }
                else {
-                       IkiWiki::redirect($cgi, $config{url}."/".htmlpage($link));
+                       IkiWiki::redirect($cgi, $config{url}.IkiWiki::beautify_url("/".htmlpage($link)));
                }
 
                exit;