refactor: url management in hotel reservation flow

This commit is contained in:
Christel Westerberg
2025-01-13 14:26:38 +01:00
parent 23ff0970e9
commit b2935114e3
48 changed files with 407 additions and 418 deletions

View File

@@ -112,14 +112,14 @@ const nextConfig = {
},
{
// ----------------------------------------
// fromDate param missing
// fromdate param missing
// ----------------------------------------
source:
"/:lang/hotelreservation/(select-bed|breakfast|details|payment)",
destination: "/:lang/hotelreservation/select-rate",
missing: [
{
key: "fromDate",
key: "fromdate",
type: "query",
value: undefined,
},
@@ -128,14 +128,14 @@ const nextConfig = {
},
{
// ----------------------------------------
// fromDate param has to be a date
// fromdate param has to be a date
// ----------------------------------------
source:
"/:lang/hotelreservation/(select-bed|breakfast|details|payment)",
destination: "/:lang/hotelreservation/select-rate",
missing: [
{
key: "fromDate",
key: "fromdate",
type: "query",
value: "^([12]\\d{3}-(0[1-9]|1[0-2])-(0?[1-9]|[12]\\d|3[01]))$",
},
@@ -144,14 +144,14 @@ const nextConfig = {
},
{
// ----------------------------------------
// toDate param missing
// todate param missing
// ----------------------------------------
source:
"/:lang/hotelreservation/(select-bed|breakfast|details|payment)",
destination: "/:lang/hotelreservation/select-rate",
missing: [
{
key: "toDate",
key: "todate",
type: "query",
value: undefined,
},
@@ -160,14 +160,14 @@ const nextConfig = {
},
{
// ----------------------------------------
// toDate param has to be a date
// todate param has to be a date
// ----------------------------------------
source:
"/:lang/hotelreservation/(select-bed|breakfast|details|payment)",
destination: "/:lang/hotelreservation/select-rate",
missing: [
{
key: "toDate",
key: "todate",
type: "query",
value: "^([12]\\d{3}-(0[1-9]|1[0-2])-(0?[1-9]|[12]\\d|3[01]))$",
},