Skip to content

Commit

Permalink
check if includes kedro-viz
Browse files Browse the repository at this point in the history
Signed-off-by: Huong Nguyen <huongg1409@gmail>
  • Loading branch information
Huong Nguyen committed Jun 25, 2024
1 parent adfaf29 commit f424309
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kedro_sphinx_theme/theme/kedro-sphinx-theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@
// Add active class based on current URL
var currentPath = window.location.pathname;
console.log(currentPath, 'currentPath')

navLinks.forEach(function(link) {
if (link.getAttribute('href') === currentPath) {
if (window.location.pathname.includes("kedro-viz")) {
console.log("link.getAttribute('href')", link.getAttribute('href'));
// Remove 'active' class from all links first to ensure only one active link
removeActiveClass();
Expand Down

0 comments on commit f424309

Please sign in to comment.