tomvanswam / compass-card

A Lovelace card that shows a directional indicator on a compass for Home Assistant
MIT License
174 stars 19 forks source link

tap_action navigate #874

Open JonasHe46 opened 11 months ago

JonasHe46 commented 11 months ago

Issue Description: In the compass-card, when using navigate within tap_action, it opens a new tab. However, other cards behave differently by opening the path in the same tab. This inconsistency could be confusing for users expecting uniform behavior across different cards.

Steps to Reproduce:

  1. Use compass-card.
  2. Apply tap_action with navigate: /path/to/dashboard.
  3. Observe the behavior as it opens a new tab.

example:

tap_action:
  action: navigate
  navigation_path: /map

Expected Behavior: Consistency in behavior across cards; the navigate action within compass-card should open the path in the same tab, similar to other cards.

Additional Information: This behavior not only affects the user experience but also has implications when using the Home Assistant app. It results in the page opening in the web browser instead of navigating within the app to the correct dashboard, disrupting the seamless app experience.

Thank you for creating such an excellent card! Overall, it has been a great addition, and this adjustment would further enhance its usability.

tomvanswam commented 11 months ago

The way the tap_action opens in another tab is specifically for my usecase, however I can change default behaviour and make opening in a tab an configurable option.

JonasHe46 commented 11 months ago

That would be really great, thank you so much! :)