diff --git a/website/www/site/static/js/section-nav.js b/website/www/site/static/js/section-nav.js index a60c3510c70c..07232107ec4e 100644 --- a/website/www/site/static/js/section-nav.js +++ b/website/www/site/static/js/section-nav.js @@ -83,7 +83,7 @@ $(document).ready(function () { "displayActiveItem": function () { const currentLocation = window.location.pathname + window.location.hash; - var activeItem = document.querySelectorAll("nav [href='" + currentLocation + "']"); + var activeItem = document.querySelectorAll("nav [href$='" + currentLocation + "']"); if (activeItem && activeItem.length > 0) { activeItem = activeItem[0]; activeItem.classList.add(CONST.ACTIVE_CLASS);