diff --git a/src/index.js b/src/index.js index 05b6b0e..879db2e 100644 --- a/src/index.js +++ b/src/index.js @@ -189,7 +189,7 @@ export class BrowserHistory extends History { setState(key: string, value: any): void { let state = Object.assign({}, this.history.state); state[key] = value; - this.history.replaceState(state, null, null); + this.history.replaceState(state, null, this.location.href); } /**