Bug description
When visiting a gitbook-page with an anchor link like:
https://gitbook.com/docs/getting-started/quickstart#getting-started
Clicking again on a headline # adds to the existing url instead of replacing it. Invalidating linking to any of the anchors:
https://gitbook.com/docs/getting-started/quickstart#getting-started#getting-started
How to reproduce
- goto https://gitbook.com/docs/getting-started/quickstart#getting-started
- click the
# in front of the Getting started headline
- copy URL from adress bar
- paste in new tab, Enter
- Page is at the very top, not at desired title
expected:
Clicking # replaces any existing #anchor in the URL, keeping it's functionality intact.
Additional context
Tested in
- Firefox 151.0b7 (64-bit) and
- Chrome 147.0.7727.139 (Official Build) (64-bit)
Bug description
When visiting a gitbook-page with an anchor link like:
Clicking again on a headline # adds to the existing url instead of replacing it. Invalidating linking to any of the anchors:
How to reproduce
#in front of the Getting started headlineexpected:
Clicking
#replaces any existing#anchorin the URL, keeping it's functionality intact.Additional context
Tested in