tag: When tagpage is set, force the links created by tagging to point at the toplevel tagpage, and not closer subpages.

The html links already went there, but internally the links were not
recorded as absolute, which could cause confusing backlinks etc.

For example, with tagbase=tags, if blog/tags/bar existed and blog/foo was
tagged bar, it would link to /tags/bar. But, the link would be recorded
simply as a link to tags/bar, and so later blog/tags/bar would appear to
have the backlink.
master
Joey Hess 2008-10-20 18:17:03 -04:00
parent df22dd5cbd
commit a2839de936
2 changed files with 5 additions and 1 deletions

View File

@ -43,7 +43,7 @@ sub tagpage ($) { #{{{
if ($tag !~ m{^\.?/} &&
defined $config{tagbase}) {
$tag=$config{tagbase}."/".$tag;
$tag="/".$config{tagbase}."/".$tag;
}
return $tag;

4
debian/changelog vendored
View File

@ -20,6 +20,10 @@ ikiwiki (2.68) UNRELEASED; urgency=low
* inline: Only the last feed link was put on the page, fix this to include
all feed links. So rss will be included along with atom, and pages with
multiple feeds will get links added for all feeds.
* tag: When tagpage is set, force the links created by tagging to point at
the toplevel tagpage, and not closer subpages. The html links already went
there, but internally the links were not recorded as absolute, which could
cause confusing backlinks etc.
-- Joey Hess <joeyh@debian.org> Fri, 17 Oct 2008 20:11:02 -0400