Header Dropdown navigation menu custom link removes heading anchor from URL

Priority/Severity:

All / Inconvenient – deffo not an emergency!

Platform:

Reproduced in Chrome on desktop and mobile

Description:

We’ve just switched over to the new ‘Header Dropdown’ navigation menu.

Our community FAQ includes a custom section to explain how the leaderboard and scoring system works with its own anchor link (/faq#waves).

I added this link including the anchor:

Discourse strips the anchor portion and simply links to /faq which defeats the point of tying to link directly to that section. Hoping that this isn’t intentional!

Reproducible steps:

  1. Change navigation menu type to ‘Header Dropdown’
  2. Add another link to /faq#civilized
  3. Click on the menu link, instead of the specified anchor you are taken to the top of /faq
3 Likes

i have reproduced and i can confirm that this the case with the navigation menu custom sections in sidebar mode as well.

2 Likes

This fix should allow anchor links to work consistently in the sidebar:

2 Likes

This topic was automatically closed after 2 days. New replies are no longer allowed.