mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 03:06:41 +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() {
|
connectedCallback() {
|
||||||
super.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");
|
const hasSupervisor = isComponentLoaded(this.hass, "hassio");
|
||||||
|
|
||||||
this._redirect = getRedirect(path);
|
this._redirect = getRedirect(path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user