Skip to content

fix: ensure initial navigation is at root#1965

Merged
kazo0 merged 1 commit into
mainfrom
dev/sb/login-nav
Feb 6, 2026
Merged

fix: ensure initial navigation is at root#1965
kazo0 merged 1 commit into
mainfrom
dev/sb/login-nav

Conversation

@kazo0

@kazo0 kazo0 commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

This pull request makes a small change to the navigation logic in the OnLaunched method to improve user experience. Now, after authentication, the navigation stack is cleared rather than nested, ensuring users cannot navigate back to previous screens such as the login page.

  • Navigation logic update:
    • Changed the navigation qualifier from Qualifiers.Nested to Qualifiers.ClearBackStack when navigating to either the main or login view models after authentication, which clears the back stack and prevents navigating back to previous pages.

Copilot AI review requested due to automatic review settings January 30, 2026 15:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the navigation behavior in the app startup flow by ensuring that initial navigation clears the back stack instead of nesting pages. This prevents users from navigating back to the login page after authentication.

Changes:

  • Changed navigation qualifier from Qualifiers.Nested to Qualifiers.ClearBackStack in the OnLaunched method for both authenticated and non-authenticated navigation paths

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kazo0
kazo0 enabled auto-merge (rebase) February 6, 2026 13:58
@kazo0
kazo0 merged commit c72e9fe into main Feb 6, 2026
70 checks passed
@kazo0
kazo0 deleted the dev/sb/login-nav branch February 6, 2026 19:00
This was referenced Jul 18, 2026
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.

3 participants