Revert "Make Urls in menus respect CanonifyUrls"

This reverts commit 3ccb397902.
This commit is contained in:
bep
2014-12-11 05:33:40 +01:00
parent 3ccb397902
commit 9b04c27998
4 changed files with 7 additions and 8 deletions

View File

@@ -532,12 +532,10 @@ func (s *Site) getMenusFromConfig() Menus {
}
menuEntry.MarshallMap(ime)
if strings.HasPrefix(menuEntry.Url, "/") {
// make it match the nodes
menuEntry.Url = s.prepUrl(menuEntry.Url)
// make it absolute so it matches the nodes
menuEntry.Url = s.permalinkStr(menuEntry.Url)
}
if ret[name] == nil {
ret[name] = &Menu{}
}