summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki.pm2
-rw-r--r--doc/plugins/write.mdwn4
2 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index f2b50e77a..36e85d413 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -938,7 +938,7 @@ sub beautify_urlpath ($) { #{{{
$url =~ s!/index.$config{htmlext}$!/!;
}
- run_hooks(urlpath => sub {
+ run_hooks(tweakurlpath => sub {
$url=shift->(url => $url);
});
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn
index e7656b299..884c7eefb 100644
--- a/doc/plugins/write.mdwn
+++ b/doc/plugins/write.mdwn
@@ -437,9 +437,9 @@ be compiled into.
It should return the target filename.
-### urlpath
+### tweakurlpath
- hook(type => "urlpath", id => "foo", call => \&urlpath);
+ hook(type => "tweakurlpath", id => "foo", call => \&tweakurlpath);
This hook can be used to modify the internal urls generated by
ikiwiki; it is run just after ikiwiki has removed the trailing