-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scrolling does not change the hash of the url #52
Comments
@wellfrog16 did you find a workaround for this? Having the same issue. |
also interested! |
scrollactive.nav(
@itemchanged="onItemChanged"
)
|
Push whitespace to remove the anchor from the url history.pushState(null, null, item ? item.href : ' ') Note: this does not preserve page queries (i.e. |
I recommend against modifying the history outside of Vue Router as it interferes with the browser's back button and history. |
I'm not sure if it makes sense to have this as a feature. It's how browsers have worked since forever and I think it's almost always not the intended behaviour. If you really want to have this behaviour for some reason you can always resort to the |
I believe the intentions behind this feature is for the URL to reflect the point at which the user has scrolled to. Thereby allowing them to copy the URL at any point. But yes, I do think this is a minor feature. |
only change the hash by click
The text was updated successfully, but these errors were encountered: