forked from MapComplete/MapComplete
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}`
|
||||
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}`
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue