UI: Fixed update state: not clear state params
This commit is contained in:
parent
f932a90b00
commit
c11f1fb965
@ -129,7 +129,8 @@ export abstract class StateControllerComponent implements IStateControllerCompon
|
||||
protected updateStateParam(newState: string, replaceCurrentHistoryUrl = false) {
|
||||
this.currentState = newState;
|
||||
if (this.syncStateWithQueryParam) {
|
||||
const queryParams: Params = {state: encodeURIComponent(this.currentState)};
|
||||
const state = this.currentState ? encodeURIComponent(this.currentState) : this.currentState;
|
||||
const queryParams: Params = {state};
|
||||
this.ngZone.run(() => {
|
||||
this.router.navigate(
|
||||
[],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user