mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix for my links ending with a slash (#25841)
This commit is contained in:
parent
65e78de41c
commit
6aa8a24aad
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user