Fixing Nav Bar Issues: Scroll Links and Mobile Menu Problems
Hi, I’m having an issue with my nav bar. All my nav links scroll to a section on the home page. I set each link to scroll to that section of the page which works. But I have a couple of separate pages and this causes an issue. I tried to get around this by setting the link to a URL with /#[section-id]. This also works except with the mobile nav menu. If I am on the home page in mobile view (hamburger menu), and I click on a link, it scrolls to the section but the nav menu doesn’t close. I’ve also tried unlinking the nav component on the home page and creating a duplicate nav link with a new class name but for some reason this changes the nav bar component links on the other pages too.

