mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix a regression for full-domain apps
This commit is contained in:
parent
6085918b03
commit
51f5b3f716
1 changed files with 6 additions and 2 deletions
|
@ -299,8 +299,12 @@ def app_map(app=None, raw=False, user=None):
|
||||||
if not raw:
|
if not raw:
|
||||||
result[url] = perm_label
|
result[url] = perm_label
|
||||||
else:
|
else:
|
||||||
|
if "/" in url.split("/", 1):
|
||||||
perm_domain, perm_path = url.split("/", 1)
|
perm_domain, perm_path = url.split("/", 1)
|
||||||
perm_path = '/' + perm_path
|
perm_path = '/' + perm_path
|
||||||
|
else:
|
||||||
|
perm_domain = url
|
||||||
|
perm_path = "/"
|
||||||
if perm_domain not in result:
|
if perm_domain not in result:
|
||||||
result[perm_domain] = {}
|
result[perm_domain] = {}
|
||||||
result[perm_domain][perm_path] = {
|
result[perm_domain][perm_path] = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue