From 9e155ea46d36d1b9af56a7f15c76f7dbbfdafe22 Mon Sep 17 00:00:00 2001 From: Aiyush Date: Wed, 3 Apr 2024 21:53:45 +0530 Subject: [PATCH] Revert "feat: romoved query param from x-page-url (#2844)" (#2857) This reverts commit 78c51cc8c7ee58691a209e906db0db5271c23cfc. Co-authored-by: julias0 --- src/app/core/interceptors/httpInterceptor.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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', }, });