Merged in fix/book-607-fix-old-links-my-stay (pull request #3365)

fix: updated to use new link structure on My Stay

* fix: updated to use new link structure on My Stay

* fix(BOOK-607): hide hotel page link if link prop is missing

* comment fixes

* fix(BOOK-607): read href from window (lcalhost not allowed)


Approved-by: Matilda Landström
This commit is contained in:
Matilda Haneling
2025-12-30 08:33:52 +00:00
parent 03b1695c9e
commit 86331a6e10
6 changed files with 80 additions and 64 deletions

View File

@@ -191,6 +191,7 @@ async function MyStay(props: {
const baseUrl = env.PUBLIC_URL || "https://www.scandichotels.com"
const promoUrl = new URL(`${baseUrl}/${lang}/`)
const hotelUrl = new URL(`${baseUrl}${bookingConfirmation.url}/`)
promoUrl.searchParams.set("hotel", hotel.operaId)
@@ -263,7 +264,7 @@ async function MyStay(props: {
<SingleRoom user={maskedUser} />
<MultiRoom user={maskedUser} />
<BookingSummary hotel={hotel} />
<BookingSummary hotelUrl={hotelUrl.toString()} hotel={hotel} />
{!isWebview && (
<Promo
title={intl.formatMessage({