diff --git a/src/app/core/interceptors/httpInterceptor.ts b/src/app/core/interceptors/httpInterceptor.ts index 97b0c963c3..57c3cd49ef 100644 --- a/src/app/core/interceptors/httpInterceptor.ts +++ b/src/app/core/interceptors/httpInterceptor.ts @@ -113,10 +113,6 @@ export class HttpConfigInterceptor implements HttpInterceptor { ); } - getUrlwithoutQueryParam(urlString: string): string { - return urlString.split('?')[0]; - } - intercept(request: HttpRequest, next: HttpHandler): Observable> { return forkJoin({ token: iif(() => this.secureUrl(request.url), this.getAccessToken(), of(null)), @@ -135,7 +131,7 @@ export class HttpConfigInterceptor implements HttpInterceptor { request = request.clone({ setHeaders: { 'X-App-Version': mobileModifiedappVersion, - 'X-Page-Url': this.getUrlwithoutQueryParam(window.location.href), + 'X-Page-Url': `${window.location.href}`, 'X-Source-Identifier': 'mobile_app', }, });