Merged in feat(SW-1944)-update-url-to-mystay (pull request #1566)
feat(SW-1944) Update to correct URL to my stay (for my pages/my stays and confirmation page) * feat(SW-1944) Update to correct URL to my stay (for my pages/my stays and confirmation page) * feat(SW-1944) updated to RefId * feat(SW-1944) updated myStay path * feat(SW-1944) updated refId check Approved-by: Christian Andolf
This commit is contained in:
@@ -5,6 +5,7 @@ import { fileURLToPath } from "url"
|
||||
import { findMyBooking } from "./constants/routes/findMyBooking.js"
|
||||
import { login, logout } from "./constants/routes/handleAuth.js"
|
||||
import { myPages } from "./constants/routes/myPages.js"
|
||||
import { myStay } from "./constants/routes/myStay.js"
|
||||
|
||||
const path = fileURLToPath(new URL(import.meta.url))
|
||||
const jiti = createJiti(path)
|
||||
@@ -308,6 +309,31 @@ const nextConfig = {
|
||||
source: findMyBooking.sv,
|
||||
destination: "/sv/hotelreservation/get-booking",
|
||||
},
|
||||
// My stay
|
||||
{
|
||||
source: `${myStay.en}`,
|
||||
destination: "/en/hotelreservation/my-stay",
|
||||
},
|
||||
{
|
||||
source: `${myStay.sv}`,
|
||||
destination: "/sv/hotelreservation/my-stay",
|
||||
},
|
||||
{
|
||||
source: `${myStay.da}`,
|
||||
destination: "/da/hotelreservation/my-stay",
|
||||
},
|
||||
{
|
||||
source: `${myStay.de}`,
|
||||
destination: "/de/hotelreservation/my-stay",
|
||||
},
|
||||
{
|
||||
source: `${myStay.fi}`,
|
||||
destination: "/fi/hotelreservation/my-stay",
|
||||
},
|
||||
{
|
||||
source: `${myStay.no}`,
|
||||
destination: "/no/hotelreservation/my-stay",
|
||||
},
|
||||
{
|
||||
source: `/sitemap-:id(\\d{1,}).xml`,
|
||||
destination: `/sitemap/:id`,
|
||||
|
||||
Reference in New Issue
Block a user