From ae5941116d7eafa2f20f55c114829f18fe3d14eb Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 26 Nov 2022 00:17:26 +0100 Subject: [PATCH] Allow apps to be installed on a path sharing a common base, eg /foo and /foo2 (#1537) --- src/app.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/app.py b/src/app.py index f4d125a47..e0ec13277 100644 --- a/src/app.py +++ b/src/app.py @@ -2508,11 +2508,7 @@ def _get_conflicting_apps(domain, path, ignore_app=None): for p, a in apps_map[domain].items(): if a["id"] == ignore_app: continue - if path == p: - conflicts.append((p, a["id"], a["label"])) - # We also don't want conflicts with other apps starting with - # same name - elif path.startswith(p) or p.startswith(path): + if path == p or path == "/" or p == "/": conflicts.append((p, a["id"], a["label"])) return conflicts