You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this has been reported yet, but I'm noticing that after clicking on a heading in the docs, it scrolls to that heading, the url fragment changed, but 5 seconds later changes back? For example, heading to https://craftcms.com/docs/commerce/3.x/orders-carts.html#carts - scroll down the page and click on any heading. The URL will change to reflect the new heading, but will flick back to the original URL. Clicking on the heading "#" again will update the URL correctly.
Notably, this looks like an issue with H3 links, the H2 ones are fine
Heading levels beyond the sidebar navigation result in weird behavior because of a workaround for another VuePress scroll bug. All heading levels should be registered and handled consistently.
Steps to reproduce
Visit page like Orders & Carts whose content uses heading levels deeper than right sidebar links.
Choose any link next to an h3+ heading.
Observe correct URL in address bar, but moments later it reverts to nearest higher-level anchor.
The text was updated successfully, but these errors were encountered:
The active header links plugin assumes that all heading anchors have corresponding links in the sidebar, and uses those pairings to forcibly update the URL hash while scrolling page content. Modified the plugin to evaluate all heading anchors when updating the URL hash and ignore the sidebar relationship altogether.
Description
From @engram-design in Discord:
Heading levels beyond the sidebar navigation result in weird behavior because of a workaround for another VuePress scroll bug. All heading levels should be registered and handled consistently.
Steps to reproduce
The text was updated successfully, but these errors were encountered: