Skip to content

Commit

Permalink
Revert "feat: romoved query param from x-page-url (#2844)" (#2857)
Browse files Browse the repository at this point in the history
This reverts commit 78c51cc.

Co-authored-by: julias0 <[email protected]>
  • Loading branch information
Julias0 and Julias0 authored Apr 3, 2024
1 parent f76e865 commit 9e155ea
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/app/core/interceptors/httpInterceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ export class HttpConfigInterceptor implements HttpInterceptor {
);
}

getUrlwithoutQueryParam(urlString: string): string {
return urlString.split('?')[0];
}

intercept(request: HttpRequest<string>, next: HttpHandler): Observable<HttpEvent<string>> {
return forkJoin({
token: iif(() => this.secureUrl(request.url), this.getAccessToken(), of(null)),
Expand All @@ -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',
},
});
Expand Down

0 comments on commit 9e155ea

Please sign in to comment.