projects
/
ikiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added hook urlpath
[ikiwiki.git]
/
IkiWiki.pm
diff --git
a/IkiWiki.pm
b/IkiWiki.pm
index 28ee882cf20d99b30059cf195ca8f70881de932d..e75175a8dfb3cc6115a018b3bf63aa2674e82496 100644
(file)
--- a/
IkiWiki.pm
+++ b/
IkiWiki.pm
@@
-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 !~ /^\//) {