We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
3.0.1
https://codesandbox.io/s/vue-routing-example-mjmxd
Click on "goodbye" Click back in browser Click forward in browser
last url is pushed into history
In ensureUrl, we need to pass false instead of true to make sure current (out-of-sync) url is replaced and not pushed to history
The next function passes true to the ensureUrl function thus making it push the out-of-sync url to history
The text was updated successfully, but these errors were encountered:
Hi, do you guys have a workaround for this issue?
Sorry, something went wrong.
@eyalhakim Did you modify the reproduction example? Can't reproduce.
In my very specific case it is not next(false), but next(otherRoute). What I did is I mutated the to argument, then called next() with no arguments.
next(false)
next(otherRoute)
to
next()
beforeEnter(to, from, next) { if (!isCool(to)) { mutateMakeCool(to); // Instead of this: // const newTo = getCool(to); // return next(newTo); } next(); }
No branches or pull requests
Version
3.0.1
Reproduction link
https://codesandbox.io/s/vue-routing-example-mjmxd
Steps to reproduce
Click on "goodbye"
Click back in browser
Click forward in browser
last url is pushed into history
What is expected?
In ensureUrl, we need to pass false instead of true to make sure current (out-of-sync) url is replaced and not pushed to history
What is actually happening?
The next function passes true to the ensureUrl function thus making it push the out-of-sync url to history
The text was updated successfully, but these errors were encountered: