This PR refactors existing nav-highlighting logic and considers the case where a link is the same as the page minus "index.html".
For example if the user is on /learn/Splash/index.html and there's a navbar entry with a href of /learn/Splash/ or /learn/Splash, these will now be considered matches for highlighting purposes.
This PR refactors existing nav-highlighting logic and considers the case where a link is the same as the page minus "index.html".
For example if the user is on
/learn/Splash/index.html
and there's a navbar entry with a href of/learn/Splash/
or/learn/Splash
, these will now be considered matches for highlighting purposes.Resolves #3596