history.js: Set lastPushUrl in method replaceCurrentState()

Without this, any subsequent call to `pushCurrentState()` has
no effect in case the same url is used that was replaced.
This commit is contained in:
Johannes Meyer 2020-11-06 17:32:51 +01:00
parent 627f388cfa
commit f05f905d14

View File

@ -126,6 +126,7 @@
if (state.url) { if (state.url) {
this.icinga.logger.debug('Replacing current history state'); this.icinga.logger.debug('Replacing current history state');
this.lastPushUrl = state.url;
window.history.replaceState( window.history.replaceState(
this.getBehaviorState(), this.getBehaviorState(),
null, null,