Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panel dashboard back button doesn't work correctly with iframe cards #21927

Open
3 of 4 tasks
nomonkeynodeal opened this issue Sep 8, 2024 · 0 comments
Open
3 of 4 tasks

Comments

@nomonkeynodeal
Copy link

nomonkeynodeal commented Sep 8, 2024

Checklist

  • I have updated to the latest available Home Assistant version.
  • I have cleared the cache of my browser.
  • I have tried a different browser to see if it is related to my browser.
  • I have tried reproducing the issue in safe mode to rule out problems with unsupported custom resources.

Describe the issue you are experiencing

When a panel dashboard with an iframe card is used, the back button sends the back navigation command to the iframe, causing the webpage to navigate back instead of the HA dashboard.

This can seem like desirable behavior at first, but if you navigate within the same iframe a many (~5?) times, eventually it will become impossible to navigate back to the HA dashboard. The HA app must be closed and restarted.

Describe the behavior you expected

The back button should not navigate within the iframe, but instead return the user to the previous HA dashboard view. Alternatively, perhaps the back button behavior can be configurable.

Steps to reproduce the issue

Make a panel dashboard with iframe and a working URL. (I used a Zigbee2MQTT instance here.) Navigate within the iframe several times. Eventually the back button will stop working and going back to the HA dash will be impossible.

title: Home
path: test
type: panel
subview: true
cards:
  - type: iframe
    url: http://z2m.lan
    aspect_ratio: 105%

What version of Home Assistant Core has the issue?

2024.9.1

What was the last working version of Home Assistant Core?

No response

In which browser are you experiencing the issue with?

all

Which operating system are you using to run this browser?

No response

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

No response

Additional information

No response

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

No branches or pull requests

1 participant