From 3a693b58deef121cb73a6bf059ad3576aff0dc91 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 30 Oct 2020 00:19:17 +0100 Subject: [PATCH] Fix an edge case where app is install on the root... --- src/yunohost/permission.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/yunohost/permission.py b/src/yunohost/permission.py index 789c18b7e..060a00e6a 100644 --- a/src/yunohost/permission.py +++ b/src/yunohost/permission.py @@ -635,9 +635,11 @@ def _get_absolute_url(url, base_path): # # For example transform: # (/api, domain.tld/nextcloud) into domain.tld/nextcloud/api + # (/api, domain.tld/nextcloud/) into domain.tld/nextcloud/api # (re:/foo.*, domain.tld/app) into re:domain\.tld/app/foo.* # (domain.tld/bar, domain.tld/app) into domain.tld/bar # + base_path = base_path.rstrip("/") if url is None: return None if url.startswith('/'):