Hello everyone. I’m having a small problem for my Highlighted Nav Links.
and This is what I have in the Config file

when I run in my localhost: all the Nav Highlights run fine but when It is on the Netlify. Only the Home is highlighted.
https://01402-tnazerian-site.netlify.app/
First, make sure you are running the same version in both places.
Second, in your site configuration, specify the pageRef
for internal links, and specify url
for external links. Don’t specify both.
Im doing it according to this Menus in Hugo | Harry Cresswell
Because without pageRef, my highlight nav wouldn’t work in the first place. And I cant seem to find any other way to do it… yet!
but yes both is running the same version
The example in that article is wrong. Do not specify both url
and pageRef
for the same entry. Use pageRef
for internal links, and use url
for external links.
Please share your netlify.toml file.