Within my Angular application, users are authenticated through an OIDC provider using the library angular-auth-oidc-client. In the scenario where a user is not authenticated or their session has expired and they attempt to access a page such as https://localhost:4202/account, they are automatically redirected to the OIDC login page. However, upon successful login, the user is consistently redirected to the home page instead of the originally requested page.
To Reproduce:
Steps to reproduce this behavior:
- Update the Auth configuration with your own settings
- Launch the project by running:
npm run start
- Navigate to https://localhost:4202/account. After being redirected to the OIDC login page, complete the login process successfully. The user will be redirected to https://localhost:4202 instead of the intended https://localhost:4202/account page.