WTH does the back button often not do what I think it will do?

The back button often doesn’t work as you think it will. It seems to be mapped to the browser history back and not what the user often things is “back.” This has been fixed in some places (like fix back button in hassio addons by bramkragten · Pull Request #14161 · home-assistant/frontend · GitHub), but not everywhere.

Closed panel means broken history

I think the biggest gotcha is when you click on an item in the UI that opens a panel. Everything seems to get out of whack once a modal panel pops up. Sometimes once you close a panel if you click “back,” then the panel will pop up again or because of a dead history item clicking back just doesn’t do anything.

This is definitely a complicated behavior to wrap your head around, but I think in general a good rule could be that the back button should never attempt reopen a panel that does not require a URL change. Non-URL change items should not be entered into history because you can’t easily go back to them.

Example: Clicking on an entity in the device page opens a panel. Now close the panel by X’ing it out. Now hit the back button on that page. See? It didn’t do anything. Because there wasn’t a URL change, there is nowhere in history for it to go.

Users implicitly go back by retracing steps

If I close a panel by X’ing it out, should it be removed from history?

Example: I navigate to a page (not the devices page, which has a bug as previously noted), then click on something that opens a panel, then X out the panel, and then hit back. I expect to go up one page in this situation, not reopen the panel! By closing the panel, I am already going back. If the user perfectly backtracks the history by another method than hitting the browser back button, then those items should be removed from history as they trace them in order.

Missing distinction between up and back in the UI

Lastly, I think there also needs to be a distinction somehow between “up” and “back.” I don’t know how to solve this one exactly, but maybe next to the back button could be a link to the next up page. Or the back button could explicitly say where it is going back to?

Example: Open a device page. Copy the URL and paste it into a clean tab. Notice that there is no back/up button, as there is no history of the tab. Maybe we are missing a “back to integration” link there. There is an expectation that these pages have a normal or most frequent way of reaching them (like folders on a file system).

Thanks for reading! I think this covers the few main instances that I run into.

And I thought my Edge was broken :smiley:
I also notice very often that sometimes, especially on the integration page or devices, you have to click on Back x times until you get back.

I have also had the issue for a while where clicking the ‘back’ button does nothing if I have opened or clicked things on a page. For instance, if I open an integration, and click on various devices to view their popups, the back button won’t take me to the previous page unless I click it 5+ times.

I haven’t been able to ascertain whether other people have this issue, or whether maybe I have some particular thing making it do this. But I have this issue with my instance of HA, and all the other instances (4 or 5) that I am involved in/have access to, having set HA up for various friends.

It seems to be regardless of android app, ios app, chrome, firefox, etc.

1 Like

This issue bugged me for some time.
I finally fixed it.
You need to edit the dashboard,
Then click on the edit next to your dashboard Title
This will open up your dashboards View Configuration page.
Find the subview toggle and turn it off.

Though this doesn’t fix it for dialogs other places in Home Assistant’s UI (ex. clicking on an entity from the devices page).