Merged in feat/SW-705-urls (pull request #918)

feat(SW-705): Updated URLs for hotelreservation

Approved-by: Niclas Edenvin
This commit is contained in:
Pontus Dreij
2024-11-18 14:24:04 +00:00
3 changed files with 8 additions and 32 deletions

View File

@@ -3,7 +3,7 @@ import { useParams } from "next/dist/client/components/navigation"
import { useIntl } from "react-intl"
import { Lang } from "@/constants/languages"
import { selectHotelMap } from "@/constants/routes/hotelReservation"
import { selectHotelMap, selectRate } from "@/constants/routes/hotelReservation"
import { mapFacilityToIcon } from "@/components/ContentType/HotelPage/data"
import ImageGallery from "@/components/ImageGallery"
@@ -150,9 +150,9 @@ export default function HotelCard({
size="small"
className={styles.button}
>
{/* TODO: Localize link and also use correct search params */}
{/* TODO: use correct search params */}
<Link
href={`/en/hotelreservation/select-rate?hotel=${hotelData.operaId}`}
href={`${selectRate[lang]}?hotel=${hotelData.operaId}`}
color="none"
keepSearchParams
>