|
|
|
@ -21,6 +21,7 @@ import { Inject, Injectable, NgZone } from '@angular/core'; |
|
|
|
import { WINDOW } from '@core/services/window.service'; |
|
|
|
import { ExceptionData } from '@app/shared/models/error.models'; |
|
|
|
import { |
|
|
|
baseUrl, |
|
|
|
createLabelFromDatasource, |
|
|
|
deepClone, |
|
|
|
deleteNullProperties, |
|
|
|
@ -409,7 +410,7 @@ export class UtilsService { |
|
|
|
} |
|
|
|
|
|
|
|
public updateQueryParam(name: string, value: string | null) { |
|
|
|
const baseUrl = [this.window.location.protocol, '//', this.window.location.host, this.window.location.pathname].join(''); |
|
|
|
const baseUrlPart = [baseUrl(), this.window.location.pathname].join(''); |
|
|
|
const urlQueryString = this.window.location.search; |
|
|
|
let newParam = ''; |
|
|
|
let params = ''; |
|
|
|
@ -429,7 +430,11 @@ export class UtilsService { |
|
|
|
} else if (newParam) { |
|
|
|
params = '?' + newParam; |
|
|
|
} |
|
|
|
this.window.history.replaceState({}, '', baseUrl + params); |
|
|
|
this.window.history.replaceState({}, '', baseUrlPart + params); |
|
|
|
} |
|
|
|
|
|
|
|
public baseUrl(): string { |
|
|
|
return baseUrl(); |
|
|
|
} |
|
|
|
|
|
|
|
public deepClone<T>(target: T, ignoreFields?: string[]): T { |
|
|
|
|