From 33be18bea2c73d9ddc828b5734cf74931f2c62c0 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sun, 20 Nov 2022 19:19:09 +0100 Subject: [PATCH] Allow apps to be installed on a path sharing a common base, eg /foo and /foo2 --- 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