From 4f8483305d13d673ecaf21a939f012ebb23169c6 Mon Sep 17 00:00:00 2001 From: Bianca Widstam Date: Thu, 15 May 2025 13:45:59 +0000 Subject: [PATCH] Merged in fix/SW-2783-my-stay-receipt-route (pull request #2111) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- apps/scandic-web/next.config.js | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/apps/scandic-web/next.config.js b/apps/scandic-web/next.config.js index 366e8c017..19636d63f 100644 --- a/apps/scandic-web/next.config.js +++ b/apps/scandic-web/next.config.js @@ -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`,