Navigation Links Appending to Current URL Path Instead of Navigating to Root-Level Pages in MegaMenu #335
-
I’m developing a website using this template. In my mega menu, I have a list of services defined as follows:
When I click on a service link while on the megamenu, the navigation works correctly, taking me to http://localhost:4321/page-1. However, if I’m on http://localhost:4321/page-1 and click on the “Discover Integrations” link, it navigates to http://localhost:4321/page-2/page-1 instead of http://localhost:4321/page-2, resulting in a “Page Not Found” error. How can I modify my URLs to ensure that each link navigates to the correct root-level page regardless of the current URL? Is adding a leading slash to each url the appropriate solution, or is there a better practice for handling megamenu navigation? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @Daremonic! Thank you for bringing this to our attention. The issue was that the language picker was trying to be too clever with path manipulation, which interfered with normal navigation. You can copy-paste the updated script from LanguagePicker and the MegaMenu should work properly. |
Beta Was this translation helpful? Give feedback.
Hi @Daremonic! Thank you for bringing this to our attention. The issue was that the language picker was trying to be too clever with path manipulation, which interfered with normal navigation. You can copy-paste the updated script from LanguagePicker and the MegaMenu should work properly.