navigation: Check Page first in URL()
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 21 Jul 2021 09:34:26 +0000 (11:34 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 21 Jul 2021 09:36:15 +0000 (11:36 +0200)
commit32508045d36a0ca70d10216afc78e1804aa2186d
treee9deeb97f81e5a66f18d4f84ca069a8ec20381ae
parente521c9a36d89dfc2f4117af4bca5c2a0731eed61
navigation: Check Page first in URL()

 In Hugo #8776 we added `pageRef`, a way to connect menu items in site config to pages.

This means that you now can have both a Page and a configured URL.

Having the configured URL as a fallback if the Page isn't found is obviously more useful, especially in multilingual sites.

See #8776
navigation/menu.go