diff --git a/src/panels/my/ha-panel-my.ts b/src/panels/my/ha-panel-my.ts index 39e97a566b..c1e091aaa1 100644 --- a/src/panels/my/ha-panel-my.ts +++ b/src/panels/my/ha-panel-my.ts @@ -349,7 +349,10 @@ class HaPanelMy extends LitElement { connectedCallback() { super.connectedCallback(); - const path = this.route.path.substring(1); + const path = this.route.path.substring( + 1, + this.route.path.endsWith("/") ? this.route.path.length - 1 : undefined + ); const hasSupervisor = isComponentLoaded(this.hass, "hassio"); this._redirect = getRedirect(path);