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:
@@ -133,7 +133,7 @@ export default async function RootLayout(props: RootLayoutProps) {
|
|||||||
function routeToScandicWeb(route: LangRoute) {
|
function routeToScandicWeb(route: LangRoute) {
|
||||||
const url = `https://www.scandichotels.com`
|
const url = `https://www.scandichotels.com`
|
||||||
return Object.entries(route).reduce((acc, [key, value]) => {
|
return Object.entries(route).reduce((acc, [key, value]) => {
|
||||||
acc[key as Lang] = `${url}/${value}`
|
acc[key as Lang] = `${url}${value}`
|
||||||
return acc
|
return acc
|
||||||
}, {} as LangRoute)
|
}, {} as LangRoute)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user