Skip to content

Commit

Permalink
fix(#35): query params are duplicated after redirect
Browse files Browse the repository at this point in the history
Co-authored-by: Badisi <[email protected]>
Fixes #35
  • Loading branch information
ms-emp authored Feb 21, 2024
1 parent 6481f34 commit 5c2b108
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ngx-auth/core/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}
})
Expand Down

0 comments on commit 5c2b108

Please sign in to comment.