From 5c2b1088ee99c0808e76d8adb0203c296d203566 Mon Sep 17 00:00:00 2001 From: ms-emp <93929177+ms-emp@users.noreply.github.com> Date: Wed, 21 Feb 2024 16:54:46 -0500 Subject: [PATCH] fix(#35): query params are duplicated after redirect Co-authored-by: Badisi Fixes #35 --- projects/ngx-auth/core/auth.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/ngx-auth/core/auth.service.ts b/projects/ngx-auth/core/auth.service.ts index 06e8bcc..f4692bc 100644 --- a/projects/ngx-auth/core/auth.service.ts +++ b/projects/ngx-auth/core/auth.service.ts @@ -182,7 +182,7 @@ export class AuthService implements OnDestroy { * ex: transform 'http://domain/base/private' to '/private' */ const absUrl = value.href.replace(AuthUtils.getBaseUrl(), ''); - void this.router.navigateByUrl(`${absUrl}${value.search}`); + void this.router.navigateByUrl(absUrl); }); } })