Merged in fix/remove-extra-slash-in-sas-web-urls (pull request #2855)

fix: Remove extra slash in urls from sas to scandic

* Remove extra slash in urls from sas to scandic


Approved-by: Joakim Jäderberg
This commit is contained in:
Anton Gunnarsson
2025-09-23 13:19:49 +00:00
parent 3a1cf12638
commit 88b0b7764d

View File

@@ -133,7 +133,7 @@ export default async function RootLayout(props: RootLayoutProps) {
function routeToScandicWeb(route: LangRoute) {
const url = `https://www.scandichotels.com`
return Object.entries(route).reduce((acc, [key, value]) => {
acc[key as Lang] = `${url}/${value}`
acc[key as Lang] = `${url}${value}`
return acc
}, {} as LangRoute)
}