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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user