Skip to content

Commit

Permalink
Fixes navigator defensive condition before changing page
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoCrd committed Sep 24, 2015
1 parent 3aa6ed0 commit 9b7f923
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/core/navigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,8 @@
if(currentPageObject.async) {
callClose(currentPage, pageObject.name, hash);
} else {
if(window.location.hash.indexOf(pageObject.name) === -1 && opts.useHash) {
var parsed = window.location.hash.split('/');
if(parsed[0].indexOf(pageObject.name) === -1 && opts.useHash) {
window.location.hash = hash;
}
}
Expand Down

0 comments on commit 9b7f923

Please sign in to comment.