Merged in fix/SW-2783-my-stay-receipt-route (pull request #2111)
fix(SW-2783): fix route to language specific receipt on my stay * fix(SW-2783): fix route to language specific receipt on my stay Approved-by: Joakim Jäderberg Approved-by: Matilda Landström
This commit is contained in:
@@ -6,7 +6,7 @@ import createJiti from "jiti"
|
||||
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"
|
||||
import { myStay, preliminaryReceipt } from "./constants/routes/myStay.js"
|
||||
|
||||
const jiti = createJiti(fileURLToPath(import.meta.url))
|
||||
jiti("./env/server")
|
||||
@@ -340,6 +340,31 @@ const nextConfig = {
|
||||
source: `${myStay.no}`,
|
||||
destination: "/no/hotelreservation/my-stay",
|
||||
},
|
||||
// My stay receipt
|
||||
{
|
||||
source: `${preliminaryReceipt.en}`,
|
||||
destination: "/en/hotelreservation/my-stay/receipt",
|
||||
},
|
||||
{
|
||||
source: `${preliminaryReceipt.sv}`,
|
||||
destination: "/sv/hotelreservation/my-stay/receipt",
|
||||
},
|
||||
{
|
||||
source: `${preliminaryReceipt.da}`,
|
||||
destination: "/da/hotelreservation/my-stay/receipt",
|
||||
},
|
||||
{
|
||||
source: `${preliminaryReceipt.de}`,
|
||||
destination: "/de/hotelreservation/my-stay/receipt",
|
||||
},
|
||||
{
|
||||
source: `${preliminaryReceipt.fi}`,
|
||||
destination: "/fi/hotelreservation/my-stay/receipt",
|
||||
},
|
||||
{
|
||||
source: `${preliminaryReceipt.no}`,
|
||||
destination: "/no/hotelreservation/my-stay/receipt",
|
||||
},
|
||||
{
|
||||
source: `/sitemap-:id(\\d{1,}).xml`,
|
||||
destination: `/sitemap/:id`,
|
||||
|
||||
Reference in New Issue
Block a user