Add explicit .html to links as not to break other deployments
This commit is contained in:
parent
09db929dea
commit
2a9faad288
1 changed files with 2 additions and 2 deletions
|
@ -55,14 +55,14 @@ export default class MoreScreen extends UIElement {
|
||||||
|
|
||||||
const params = `z=${currentLocation.zoom ?? 1}&lat=${currentLocation.lat ?? 0}&lon=${currentLocation.lon ?? 0}`
|
const params = `z=${currentLocation.zoom ?? 1}&lat=${currentLocation.lat ?? 0}&lon=${currentLocation.lon ?? 0}`
|
||||||
let linkText =
|
let linkText =
|
||||||
`${path}/${layout.id.toLowerCase()}?${params}`
|
`${path}/${layout.id.toLowerCase()}.html?${params}`
|
||||||
|
|
||||||
if (location.hostname === "localhost" || location.hostname === "127.0.0.1") {
|
if (location.hostname === "localhost" || location.hostname === "127.0.0.1") {
|
||||||
linkText = `${path}/index.html?layout=${layout.id}&${params}`
|
linkText = `${path}/index.html?layout=${layout.id}&${params}`
|
||||||
}
|
}
|
||||||
|
|
||||||
if (customThemeDefinition) {
|
if (customThemeDefinition) {
|
||||||
linkText = `${path}/?userlayout=${layout.id}&${params}#${customThemeDefinition}`
|
linkText = `${path}/index.html?userlayout=${layout.id}&${params}#${customThemeDefinition}`
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue