헤더 드롭다운 내비게이션 메뉴의 사용자 정의 링크가 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개의 좋아요

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

2개의 좋아요

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

https://github.com/discourse/discourse/commit/e3cfb1967d531a09b475bba45b33605eabd5a0d8

2개의 좋아요

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