mybb / mybb-website-theme

Shared styles for the main MyBB website and documentation.
MIT License
4 stars 2 forks source link

Smooth scrolling prevents fragment identifiers from being updated in URL #3

Closed dvz closed 6 years ago

dvz commented 6 years ago

event.preventDefault() at https://github.com/mybb/mybb-website-theme/blob/07519f8/assets/js/script.js#L26 prevents the fragment identifier (# anchors) from being updated in the URL (and breaks the CSS :target pseudo-class).