plone / volto

React-based frontend for the Plone Content Management System
https://demo.plone.org/
MIT License
427 stars 575 forks source link

Anchor link not working properly if same id is present on the page. #5949

Open iFlameing opened 3 weeks ago

iFlameing commented 3 weeks ago

To Reproduce

  1. Create a Page and add a heading tag and copy it.
  2. Go to another page and paste the copied heading.
  3. On same page create a link which point to firstpage heading.
  4. When you click Volto first navigate to that page and then scroll to previous page anchor tag.

Please create a scrollable page to clearly see the issue.

Screencast

https://github.com/plone/volto/assets/33936987/155f5822-e1aa-439d-b9b1-dc4cc86c9313

tisto commented 2 weeks ago

@iFlameing can you provide an estimate how much work a fix would be?