Skip to content

Fix bottom nav staying visible when opening deep links#2929

Merged
veloce merged 1 commit into
lichess-org:mainfrom
CloudyDino:fix/deep-link-bottom-nav-2910
Apr 9, 2026
Merged

Fix bottom nav staying visible when opening deep links#2929
veloce merged 1 commit into
lichess-org:mainfrom
CloudyDino:fix/deep-link-bottom-nav-2910

Conversation

@CloudyDino

@CloudyDino CloudyDino commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

Fix bottom nav staying visible when opening deep links

Summary

Root Cause

handleAppLink() was calling Navigator.of(context).push(route) which pushed onto the tab navigator (since the context comes from currentNavigatorKeyProvider, a tab-specific key). This meant deep link screens were rendered within the tab, leaving the bottom navigation bar visible and shrinking the screen.

The fix changes this to Navigator.of(context, rootNavigator: true).push(route), which pushes onto the root navigator above MainTabScaffold -- consistent with how every other full-screen navigation in the app works.

Deep links tested

All deep link types go through handleAppLink() and are affected by this fix. Tested on Android emulator (API 36) against lichess.dev:

Game (/3K42eD3l)

Before After
1_game 1_game

Study (/study/9hdiWME4)

Before After
2_study 2_study

Tournament (/tournament/HWT5E5Ja)

Before After
3_tournament 3_tournament

Broadcast (/broadcast/.../BoiVuw5O)

Before After
4_broadcast 4_broadcast

Use rootNavigator when pushing deep link routes so they display
above the tab scaffold instead of inside it.

Fixes lichess-org#2910

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@CloudyDino CloudyDino marked this pull request as ready for review April 8, 2026 19:50

@veloce veloce 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.

Thanks!

@veloce veloce merged commit a13b593 into lichess-org:main Apr 9, 2026
1 check passed
@CloudyDino CloudyDino deleted the fix/deep-link-bottom-nav-2910 branch April 22, 2026 16:52
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.

Bottom menu doesn't disappear when opening deep links

2 participants