Skip to content

Prevent HomeView from reopening when already presented via deeplink#4226

Closed
Copilot wants to merge 2 commits intomainfrom
copilot/prevent-homeview-reopen
Closed

Prevent HomeView from reopening when already presented via deeplink#4226
Copilot wants to merge 2 commits intomainfrom
copilot/prevent-homeview-reopen

Conversation

Copy link
Contributor

Copilot AI commented Jan 15, 2026

Summary

When the homeassistant://experimental-dashboard deeplink is triggered while HomeView is already displayed, it unnecessarily dismisses and re-presents the view. This adds a check to skip re-presentation if HomeView is already on screen.

Changes:

  • Added homeView tag to WebViewControllerOverlayedViewTags enum
  • Check overlayedController?.view.tag before presenting in IncomingURLHandler
  • Set tag on HomeView instance at creation

Follows existing pattern used for settingsView and noActiveURLError.

Screenshots

N/A - No UI changes, behavior change only

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#

Any other notes

N/A

Original prompt

Prevent HomeView to reppen if it is already on screen when its deeplink is triggered jn IncomingURLhandler


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: bgoncal <5808343+bgoncal@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix HomeView reopening on deeplink trigger Prevent HomeView from reopening when already presented via deeplink Jan 15, 2026
Copilot AI requested a review from bgoncal January 15, 2026 19:40
@bgoncal bgoncal closed this Jan 16, 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.

2 participants