aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-04-21 20:15:11 -0400
committerJoey Hess <joey@kitenet.net>2010-04-21 20:15:11 -0400
commit129cd00bdb03e32df8645b12138cb4c79952775e (patch)
tree3593f99780592c1ec9081d57972ccf5287dcf95a
parent77779dc4a09a9b686935e8e615cf2502f7125bb4 (diff)
downloadikiwiki-129cd00bdb03e32df8645b12138cb4c79952775e.tar
ikiwiki-129cd00bdb03e32df8645b12138cb4c79952775e.tar.gz
remove broken ./tag support
The commit that added the (working) support for using /tag to override tagbase also tried to make ./tag work. Problem is, tags are links, and ./foo is not a valid link (though I think there's a wishlist about it). So, using ./tag really resulted in tag creation links that led to a "bad page name" error. And even if the tag were created in the right place, the link didn't go to it.
-rw-r--r--IkiWiki/Plugin/tag.pm2
-rw-r--r--doc/ikiwiki/directive/tag.mdwn2
2 files changed, 2 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/tag.pm b/IkiWiki/Plugin/tag.pm
index 62e0cc3b8..8ec08e936 100644
--- a/IkiWiki/Plugin/tag.pm
+++ b/IkiWiki/Plugin/tag.pm
@@ -39,7 +39,7 @@ sub getsetup () {
sub tagpage ($) {
my $tag=shift;
- if ($tag !~ m{^\.?/} &&
+ if ($tag !~ m{^/} &&
defined $config{tagbase}) {
$tag="/".$config{tagbase}."/".$tag;
$tag=~y#/#/#s; # squash dups
diff --git a/doc/ikiwiki/directive/tag.mdwn b/doc/ikiwiki/directive/tag.mdwn
index 64736f8cd..807a96f25 100644
--- a/doc/ikiwiki/directive/tag.mdwn
+++ b/doc/ikiwiki/directive/tag.mdwn
@@ -28,7 +28,7 @@ into the `link()` [[ikiwiki/PageSpec]] you use: e.g., if your tagbase is
If you want to override the tagbase for a particular tag, you can use
something like this:
- \[[!tag ./foo]]
+ \[[!tag /foo]]
\[[!taglink /foo]]
[[!meta robots="noindex, follow"]]