From 2a9faad288699c467a4e12cd7430c866b94a78c4 Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Mon, 10 May 2021 16:03:40 +0200 Subject: [PATCH] Add explicit .html to links as not to break other deployments --- UI/BigComponents/MoreScreen.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/BigComponents/MoreScreen.ts b/UI/BigComponents/MoreScreen.ts index a19f20f0e3..687d2f2185 100644 --- a/UI/BigComponents/MoreScreen.ts +++ b/UI/BigComponents/MoreScreen.ts @@ -55,14 +55,14 @@ export default class MoreScreen extends UIElement { const params = `z=${currentLocation.zoom ?? 1}&lat=${currentLocation.lat ?? 0}&lon=${currentLocation.lon ?? 0}` let linkText = - `${path}/${layout.id.toLowerCase()}?${params}` + `${path}/${layout.id.toLowerCase()}.html?${params}` if (location.hostname === "localhost" || location.hostname === "127.0.0.1") { linkText = `${path}/index.html?layout=${layout.id}&${params}` } if (customThemeDefinition) { - linkText = `${path}/?userlayout=${layout.id}&${params}#${customThemeDefinition}` + linkText = `${path}/index.html?userlayout=${layout.id}&${params}#${customThemeDefinition}` }