Ensure proxyauth has a fallback icon for apps without icons

This commit is contained in:
Johannes Zellner
2025-07-21 16:26:22 +02:00
parent 545ac689b1
commit cc3dc1636b

View File

@@ -152,7 +152,7 @@ async function login(req, res, next) {
const data = {
loginUrl: `https://${dashboardFqdn}/openid/auth?client_id=${proxyAuthClientId}&scope=openid profile email&response_type=code&redirect_uri=https://${app.fqdn}/callback`,
iconUrl: `https://${dashboardFqdn}${app.iconUrl}`,
iconUrl: app.iconUrl ? `https://${dashboardFqdn}${app.iconUrl}` : `https://${dashboardFqdn}/img/appicon_fallback.png`,
name: app.label || app.subdomain || app.fqdn,
language: await settings.get(settings.LANGUAGE_KEY),
apiOrigin: `https://${dashboardFqdn}`,