diff --git a/next.config.js b/next.config.js index 7c89a5e06..be21bf182 100644 --- a/next.config.js +++ b/next.config.js @@ -102,11 +102,26 @@ const nextConfig = { source: `${myPages.sv}/:path*`, destination: `/sv/my-pages/:path*`, }, - { source: hotelReservation.da, destination: "/da/hotelreservation" }, - { source: hotelReservation.de, destination: "/de/hotelreservation" }, - { source: hotelReservation.fi, destination: "/fi/hotelreservation" }, - { source: hotelReservation.no, destination: "/no/hotelreservation" }, - { source: hotelReservation.sv, destination: "/sv/hotelreservation" }, + { + source: `${hotelReservation.da}/:path*`, + destination: "/da/hotelreservation/:path*", + }, + { + source: `${hotelReservation.de}/:path*`, + destination: "/de/hotelreservation/:path*", + }, + { + source: `${hotelReservation.fi}/:path*`, + destination: "/fi/hotelreservation/:path*", + }, + { + source: `${hotelReservation.no}/:path*`, + destination: "/no/hotelreservation/:path*", + }, + { + source: `${hotelReservation.sv}/:path*`, + destination: "/sv/hotelreservation/:path*", + }, ], } },