Open mattstein opened 3 years ago
Related: https://github.com/vuepress/vuepress-community/issues/71
Seems to be an issue with smooth scrolling in Firefox. Disabling the scroll-behavior: smooth
property immediately has anchor links working again in this project:
html {
/* scroll-behavior: smooth; */
}
Prior to that change it had helped to switch from bare anchors like [foo](#foo)
to include the page like [foo](current-page.md#foo)
—but results were inconsistent.
A quick test with vanilla HTML and CSS worked fine in Firefox, which means the problem must have to do with Vue Router and Firefox when scroll-behavior: smooth
.
Description
Anchor scroll behavior is inconsistent specifically in Firefox. (With this issue, behavior is fine in Chrome, Safari, and Edge.)
Choosing an anchor link that’s inside a table in the page content will update the browser URL without scrolling to page content as expected. In the case of the Controller Actions pages, choosing the exact same item from the sidebar/TOC menu works as expected.
Pages where this can be observed:
CRAFT_BASE_PATH
link)Steps to reproduce
Additional Information
Firefox 88.0 on macOS 11.3.