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:
darda 2016-06-23 08:49:18 +02:00 committed by Thomas Erfurth
parent b848655d8b
commit c17ea5bbc8

View file

@ -1664,7 +1664,7 @@
var replaceHistory =
(arguments.length === 3 ? arg2 : arg1) === true ||
previousRoute === root
previousRoute === currentRoute
if (global.history.pushState) {
var method = replaceHistory ? "replaceState" : "pushState"