fix(SW-690): use correct naming of search params in booking

Approved-by: Bianca Widstam
Approved-by: Linus Flood
This commit is contained in:
Niclas Edenvin
2024-10-24 08:49:06 +00:00
parent 748021cdab
commit 8d490e14f2
8 changed files with 36 additions and 31 deletions

View File

@@ -105,7 +105,11 @@ export default async function HotelCard({ hotel }: HotelCardProps) {
className={styles.button}
>
{/* TODO: Localize link and also use correct search params */}
<Link href="/en/hotelreservation/select-rate" color="none">
<Link
href={`/en/hotelreservation/select-rate?hotel=${hotelData.operaId}`}
color="none"
keepSearchParams
>
{intl.formatMessage({ id: "See rooms" })}
</Link>
</Button>