]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Fix the link() pagespec to match links that are internally recorded as absolute.
authorJoey Hess <joey@kodama.kitenet.net>
Sun, 9 Nov 2008 20:31:57 +0000 (15:31 -0500)
committerJoey Hess <joey@kodama.kitenet.net>
Sun, 9 Nov 2008 20:31:57 +0000 (15:31 -0500)
This fixes a problem exposed by the recent change to tags
(a2839de9362187b67b0e3a564461e272e64fd9b4). That recorded tag links as
absolute by including a leading slash in the link. The same could also be
done with an absolute wikilink.

In either case, link() would not match such links, unless the leading slash
was included in the link to match. But that's not right, because pagespecs
match absolute by default. So strip the leading slash.

Note that to keep any existing `link(/foo)` pagespecs working after this
change, the leading slash is removed from there, too.


No differences found