mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix an edge case where app is install on the root...
This commit is contained in:
parent
db14d73e11
commit
3a693b58de
1 changed files with 2 additions and 0 deletions
|
@ -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('/'):
|
||||
|
|
Loading…
Add table
Reference in a new issue