Push route to history stack, when using parameters
Bugfix for issue #1124 The condition has been changed, which is deciding to push the a route to history stack. I think, it is necessary to compare the old route with the current route, instead of old route with root (without parameters).
This commit is contained in:
parent
015f127563
commit
753944efe8
1 changed files with 1 additions and 1 deletions
|
|
@ -1659,7 +1659,7 @@
|
||||||
|
|
||||||
var replaceHistory =
|
var replaceHistory =
|
||||||
(arguments.length === 3 ? arg2 : arg1) === true ||
|
(arguments.length === 3 ? arg2 : arg1) === true ||
|
||||||
oldRoute === root
|
oldRoute === currentRoute
|
||||||
|
|
||||||
if (global.history.pushState) {
|
if (global.history.pushState) {
|
||||||
var method = replaceHistory ? "replaceState" : "pushState"
|
var method = replaceHistory ? "replaceState" : "pushState"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue