Skip to content

fix: redirect when not signed in - #458

Merged
petruki merged 1 commit into
masterfrom
staging
Nov 8, 2026
Merged

petruki merged 1 commit into
masterfrom
staging

Conversation

@petruki

@petruki petruki commented Nov 8, 2026

Copy link
Copy Markdown
Member

This pull request refactors the navigation logic after a successful login in the LoginComponent to support redirecting users to a returnUrl if specified, improving the user experience for deep links and redirects. It also makes minor improvements to router navigation calls.

Navigation logic improvements:

  • Added a new private method navigateAfterLogin() that checks for a returnUrl query parameter and safely redirects users to that URL if present; otherwise, it defaults to /dashboard. This method is now used in place of direct navigation to /dashboard after login. [1] [2]
  • Updated the router navigation call in the OAuth callback logic to use the void operator, ensuring proper handling of the navigation promise.

@petruki petruki added this to the v2.2.1 milestone Nov 8, 2026
@petruki petruki self-assigned this Nov 8, 2026
@petruki
petruki merged commit ef31ae5 into master Nov 8, 2026
3 checks passed
@petruki
petruki deleted the staging branch November 8, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant