diff --git a/web/pdf_history.js b/web/pdf_history.js index c9c84ecc1..c85954ede 100644 --- a/web/pdf_history.js +++ b/web/pdf_history.js @@ -65,7 +65,8 @@ var PDFHistory = { // is opened in the web viewer. this.reInitialized = true; } - window.history.replaceState({ fingerprint: this.fingerprint }, ''); + window.history.replaceState({ fingerprint: this.fingerprint }, '', + document.URL); } var self = this; @@ -291,9 +292,9 @@ var PDFHistory = { } } if (overwrite || this.uid === 0) { - window.history.replaceState(this._stateObj(params), ''); + window.history.replaceState(this._stateObj(params), '', document.URL); } else { - window.history.pushState(this._stateObj(params), ''); + window.history.pushState(this._stateObj(params), '', document.URL); } this.currentUid = this.uid++; this.current = params;