Fix ref/relref short lookup for pages in sub-folder

Fixes #6952
This commit is contained in:
Bjørn Erik Pedersen
2020-03-02 20:06:58 +01:00
parent d7798906d8
commit 8947c3fa0b
2 changed files with 6 additions and 2 deletions

View File

@@ -305,7 +305,7 @@ func (c *PageCollections) getContentNode(context page.Page, isReflink bool, ref
}
// Ref/relref supports this potentially ambigous lookup.
return getByName(name)
return getByName(path.Base(name))
}