#428 don't add history entry on reload from link
This commit is contained in:
parent
f9df39f5f7
commit
aacc618dfd
1 changed files with 1 additions and 1 deletions
|
|
@ -623,7 +623,7 @@ var m = (function app(window, undefined) {
|
|||
var currentPath = queryIndex > -1 ? currentRoute.slice(0, queryIndex) : currentRoute
|
||||
if (querystring) currentRoute = currentPath + (currentPath.indexOf("?") === -1 ? "?" : "&") + querystring;
|
||||
|
||||
var shouldReplaceHistoryEntry = (arguments.length === 3 ? arguments[2] : arguments[1]) === true;
|
||||
var shouldReplaceHistoryEntry = (arguments.length === 3 ? arguments[2] : arguments[1]) === true || currentRoute === arguments[0];
|
||||
|
||||
if (window.history.pushState) {
|
||||
computePostRedrawHook = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue