From dbaf6c6ce277ca69147f34703b6a3496cd19b033 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Mon, 10 Nov 2025 13:04:00 +0100 Subject: [PATCH] Use full URLs for page preview icons and favicon --- dashboard/src/meta-tags-header.html | 4 ++++ src/routes/dashboard.js | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dashboard/src/meta-tags-header.html b/dashboard/src/meta-tags-header.html index 6e2418b91..c43c295a3 100644 --- a/dashboard/src/meta-tags-header.html +++ b/dashboard/src/meta-tags-header.html @@ -7,6 +7,10 @@ +<% } else if (locals.dashboardFqdn) { -%> + + + <% } else { -%> diff --git a/src/routes/dashboard.js b/src/routes/dashboard.js index e3543532c..64eb89a2f 100644 --- a/src/routes/dashboard.js +++ b/src/routes/dashboard.js @@ -67,8 +67,9 @@ const TEMPLATE_RESTORE = fs.readFileSync(path.join(paths.DASHBOARD_DIR, 'restore const TEMPLATE_ACTIVATION = fs.readFileSync(path.join(paths.DASHBOARD_DIR, 'activation.html'), 'utf-8'); async function renderIndex(req, res) { + const { fqdn:dashboardFqdn } = await dashboard.getLocation(); const name = await branding.getCloudronName(); - const html = ejs.render(TEMPLATE_INDEX, { name }); + const html = ejs.render(TEMPLATE_INDEX, { dashboardFqdn, name }); res.send(html); }