...
|
...
|
@@ -21,6 +21,7 @@ import { Inject, Injectable, NgZone } from '@angular/core'; |
21
|
21
|
import { WINDOW } from '@core/services/window.service';
|
22
|
22
|
import { ExceptionData } from '@app/shared/models/error.models';
|
23
|
23
|
import {
|
|
24
|
+ baseUrl,
|
24
|
25
|
createLabelFromDatasource,
|
25
|
26
|
deepClone,
|
26
|
27
|
deleteNullProperties,
|
...
|
...
|
@@ -409,7 +410,7 @@ export class UtilsService { |
409
|
410
|
}
|
410
|
411
|
|
411
|
412
|
public updateQueryParam(name: string, value: string | null) {
|
412
|
|
- const baseUrl = [this.window.location.protocol, '//', this.window.location.host, this.window.location.pathname].join('');
|
|
413
|
+ const baseUrlPart = [baseUrl(), this.window.location.pathname].join('');
|
413
|
414
|
const urlQueryString = this.window.location.search;
|
414
|
415
|
let newParam = '';
|
415
|
416
|
let params = '';
|
...
|
...
|
@@ -429,7 +430,11 @@ export class UtilsService { |
429
|
430
|
} else if (newParam) {
|
430
|
431
|
params = '?' + newParam;
|
431
|
432
|
}
|
432
|
|
- this.window.history.replaceState({}, '', baseUrl + params);
|
|
433
|
+ this.window.history.replaceState({}, '', baseUrlPart + params);
|
|
434
|
+ }
|
|
435
|
+
|
|
436
|
+ public baseUrl(): string {
|
|
437
|
+ return baseUrl();
|
433
|
438
|
}
|
434
|
439
|
|
435
|
440
|
public deepClone<T>(target: T, ignoreFields?: string[]): T {
|
...
|
...
|
|