]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commit
backlink(.) should behave like backlink(<current page>)
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 13 Jan 2012 10:02:11 +0000 (11:02 +0100)
committerJoey Hess <joey@kitenet.net>
Fri, 13 Jan 2012 17:42:38 +0000 (13:42 -0400)
commit17fb0cf9f9897121d9996e8c23ac0056d29acd7b
treea53fd6589a0d20cd9bfd72b0c631cb554aa78a58
parent08325b4da66d71f6c31cb269138c2ee4f279e786
backlink(.) should behave like backlink(<current page>)

Since commit c4d4cad3befbbd444d094cbeb0b6ebba3910a025, the single dot in
a pagespec can be used to mean the current page. While this worked
correctly in link() it didn't work in backlink(). Fix this by explicitly
checking the testpage in backlink against . and replacing it with the
current location if necessary.
IkiWiki.pm