added hook urlpath
[ikiwiki.git] / IkiWiki.pm
index 28ee882cf20d99b30059cf195ca8f70881de932d..e75175a8dfb3cc6115a018b3bf63aa2674e82496 100644 (file)
@@ -927,6 +927,10 @@ sub beautify_urlpath ($) { #{{{
                $url =~ s!/index.$config{htmlext}$!/!;
        }
 
+       run_hooks(urlpath => sub {
+               $url=shift->(url => $url);
+       });
+
        # Ensure url is not an empty link, and
        # if it's relative, make that explicit to avoid colon confusion.
        if ($url !~ /^\//) {