mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix back button on subview (#14251)
This commit is contained in:
parent
9cb168c439
commit
8cb0d38d78
@ -747,10 +747,10 @@ class HUIRoot extends LitElement {
|
|||||||
|
|
||||||
if (curViewConfig?.back_path) {
|
if (curViewConfig?.back_path) {
|
||||||
navigate(curViewConfig.back_path);
|
navigate(curViewConfig.back_path);
|
||||||
} else if (history.length > 0) {
|
} else if (history.length > 1) {
|
||||||
history.back();
|
history.back();
|
||||||
} else {
|
} else {
|
||||||
navigate(views[0].path!);
|
navigate(this.route!.prefix);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user