This post recommends URLs not starting from /
. I observed that in some cases, say, in my previous question, /
got interpreted as the domain name instead of the site’s baseURL
. This motives me to ask whether the leftmost /
in the url
field in docs page about Hugo Menus needs to be removed.
[menu]
[[menu.main]]
identifier = "about"
name = "about hugo"
pre = "<i class='fa fa-heart'></i>"
url = "/about/"
weight = -110
[[menu.main]]
name = "getting started"
post = "<span class='alert'>New!</span>"
pre = "<i class='fa fa-road'></i>"
url = "/getting-started/"
weight = -100