aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki/Plugin/tag.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/tag.pm b/IkiWiki/Plugin/tag.pm
index 276d67e03..f0e3c223c 100644
--- a/IkiWiki/Plugin/tag.pm
+++ b/IkiWiki/Plugin/tag.pm
@@ -62,6 +62,7 @@ sub preprocess_taglink (@) { #{{{
if (/(.*)\|(.*)/) {
my $tag=IkiWiki::linkpage($2);
$tags{$params{page}}{$tag}=1;
+ push @{$links{$params{page}}}, tagpage($tag);
return htmllink($params{page}, $params{destpage},
tagpage($tag),
linktext => IkiWiki::pagetitle($1));
@@ -69,6 +70,7 @@ sub preprocess_taglink (@) { #{{{
else {
my $tag=IkiWiki::linkpage($_);
$tags{$params{page}}{$tag}=1;
+ push @{$links{$params{page}}}, tagpage($tag);
return htmllink($params{page}, $params{destpage},
tagpage($tag));
}