diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-11-10 21:47:29 -0500 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-11-10 21:47:29 -0500 |
commit | 53752bcb5d17ec51901ec926208793f9450b3243 (patch) | |
tree | 7e5001050b4752051c875906a3805d7cbed2ba58 | |
parent | 6049fac46e65d60681366b4324660a6854fd029c (diff) | |
download | ikiwiki-53752bcb5d17ec51901ec926208793f9450b3243.tar ikiwiki-53752bcb5d17ec51901ec926208793f9450b3243.tar.gz |
remove redundant link munge
This is not needed now that tagpage returns a page name starting with a
slash.
(Also fixes a minor bug that the edit links started with double slashes due
to the hack.)
-rw-r--r-- | IkiWiki/Plugin/tag.pm | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/IkiWiki/Plugin/tag.pm b/IkiWiki/Plugin/tag.pm index 7977bbcf5..d725ef9b3 100644 --- a/IkiWiki/Plugin/tag.pm +++ b/IkiWiki/Plugin/tag.pm @@ -56,13 +56,7 @@ sub taglink ($$$;@) { #{{{ my $tag=shift; my %opts=@_; - my $link=tagpage($tag); - - # Force tag creation links to create the tag under /tagbase, - # if there is a tagbase and this tag used it. - $link="/".$link if $tag ne $link; - - return htmllink($page, $destpage, $link, %opts); + return htmllink($page, $destpage, tagpage($tag), %opts); } #}}} sub preprocess_tag (@) { #{{{ |