update RecentChanges action to point to page
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 29 Jan 2008 17:20:17 +0000 (12:20 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 29 Jan 2008 17:20:17 +0000 (12:20 -0500)
IkiWiki/Render.pm

index 5684f80924f32fca82772a9b1295247c430f3883..cfe03991699b1f96d61a7a40963058fd4a209a02 100644 (file)
@@ -82,9 +82,11 @@ sub genpage ($$) { #{{{
        if (length $config{cgiurl}) {
                $template->param(editurl => cgiurl(do => "edit", page => pagetitle($page, 1)));
                $template->param(prefsurl => cgiurl(do => "prefs"));
-               if ($config{rcs}) {
-                       $template->param(recentchangesurl => cgiurl(do => "recentchanges"));
-               }
+               $actions++;
+       }
+               
+       if ($config{rcs}) {
+               $template->param(recentchangesurl => urlto("recentchanges", $page));
                $actions++;
        }