diff options
author | Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/> | 2008-07-21 22:01:11 +0100 |
---|---|---|
committer | Simon McVittie <smcv@ http://smcv.pseudorandom.co.uk/> | 2008-07-21 22:02:55 +0100 |
commit | 09a5cdbb3401cdcb17f3d2993912a8f0ea8d23b2 (patch) | |
tree | 66f0237341f8236d41800baa71ebeacacd8924bc /IkiWiki | |
parent | 8fbe201bb379e46c4285be5c07eb1247a8639d96 (diff) | |
download | ikiwiki-09a5cdbb3401cdcb17f3d2993912a8f0ea8d23b2.tar ikiwiki-09a5cdbb3401cdcb17f3d2993912a8f0ea8d23b2.tar.gz |
Don't prepend tagbase to tags if they start with "./" or "/".
That syntax made little sense previously, and this allows sites to put
"most" of their tags under $tagbase.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/tag.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/tag.pm b/IkiWiki/Plugin/tag.pm index f0e3c223c..b0a0e53be 100644 --- a/IkiWiki/Plugin/tag.pm +++ b/IkiWiki/Plugin/tag.pm @@ -25,7 +25,8 @@ sub getopt () { #{{{ sub tagpage ($) { #{{{ my $tag=shift; - if (exists $config{tagbase} && + if ($tag !~ m{^\.?/} && + exists $config{tagbase} && defined $config{tagbase}) { $tag=$config{tagbase}."/".$tag; } |