Skip to content

Commit

Permalink
Minor: Fix doc left nav on dev website (#14881)
Browse files Browse the repository at this point in the history
  • Loading branch information
pcoet authored May 25, 2021
1 parent e52e9e4 commit 324cf7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/www/site/static/js/section-nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 324cf7d

Please sign in to comment.