diff --git a/lib/browser/api/navigation-controller.js b/lib/browser/api/navigation-controller.js index 1260cfb3dac..f0b1cef9bb3 100644 --- a/lib/browser/api/navigation-controller.js +++ b/lib/browser/api/navigation-controller.js @@ -49,9 +49,10 @@ var NavigationController = (function () { // Normal navigation. Clear history. this.history = this.history.slice(0, this.currentIndex + 1) currentEntry = this.history[this.currentIndex] - if ((currentEntry != null ? currentEntry.url : void 0) !== url) { + + if (currentEntry !== url) { this.currentIndex++ - return this.history.push(url) + this.history.push(url) } } })