saberland/saber

The issue has been closed
Check if push or replace in scrollBehavior #269
MarchWorks posted onGitHub
<!-- Please don't delete this template or we'll close your issue -->
<!-- Before creating an issue please make sure you are using the latest version of Saber. -->
Feature request
<!-- Please ask questions via following several ways. -->
<!-- https://chat.saber.land/ -->
<!-- https://stackoverflow.com/questions/ask?tags=saberjs -->
What problem does this feature solve?
The ability to customize the scrollBehavior in case of replacing the hash (scrolling while changing the hash with this.$router.replace
)
There is an issue for something like this in the official vue-router repo but it's taking eternity
What does the proposed API look like?
scrollBehavior(to, from, savedPosition, isPush)
How should this be implemented in your opinion?
N/A
Are you willing to work on this yourself?
Yes