portalapi: we don't need absolute URLs for app logos ? (This ain't working when enabling the 'show other domains apps' because of CSP)

This commit is contained in:
Alexandre Aubin 2024-08-05 21:08:06 +02:00
parent 656e5c75d1
commit bc93a2e079

View file

@ -1734,7 +1734,7 @@ def app_ssowatconf():
# Also related to "people will want to customize those.."
app_catalog_info = apps_catalog.get(app_id.split("__")[0])
if app_catalog_info and "logo_hash" in app_catalog_info:
app_portal_info["logo"] = f"//{app_portal_domain}/yunohost/sso/applogos/{app_catalog_info['logo_hash']}.png"
app_portal_info["logo"] = f"/yunohost/sso/applogos/{app_catalog_info['logo_hash']}.png"
portal_domains_apps[app_portal_domain][app_id] = app_portal_info