From 8a2835a13ec2c3658d65f49fcfa9709fc0bb294d Mon Sep 17 00:00:00 2001 From: Bob Vandevliet <35454011+bvandevliet@users.noreply.github.com> Date: Thu, 18 Dec 2025 13:23:40 +0100 Subject: [PATCH] Consistent linking, less confusing, partial revert of 0e82abef. --- src/js/scripts.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/js/scripts.js b/src/js/scripts.js index 33fdd4a..0788fdd 100644 --- a/src/js/scripts.js +++ b/src/js/scripts.js @@ -44,17 +44,6 @@ document.addEventListener('DOMContentLoaded', () => // Update nav links and add anchor links to section headers. sectionsWithId.forEach(anchorTarget => { - // Navigate within current page if a section for the anchor exists. - navLinks.forEach(navLink => - { - const href = navLink.getAttribute('href'); - - if (href.startsWith('/#') && href.substring(2) === anchorTarget.id) - { - navLink.setAttribute('href', href.substring(1)); - } - }); - /** * @type {HTMLHeadingElement|null} */