mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
Revert "Make Urls in menus respect CanonifyUrls"
This reverts commit 3ccb397902
.
This commit is contained in:
@@ -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{}
|
||||
}
|
||||
|
Reference in New Issue
Block a user