diff --git a/packages/booking-flow/lib/components/HotelDetailsSidePeek/HotelSidePeekContent/index.tsx b/packages/booking-flow/lib/components/HotelDetailsSidePeek/HotelSidePeekContent/index.tsx index 558fa2a0a..9ea5f01eb 100644 --- a/packages/booking-flow/lib/components/HotelDetailsSidePeek/HotelSidePeekContent/index.tsx +++ b/packages/booking-flow/lib/components/HotelDetailsSidePeek/HotelSidePeekContent/index.tsx @@ -7,6 +7,8 @@ import { IconName } from "@scandic-hotels/design-system/Icons/iconName" import { Typography } from "@scandic-hotels/design-system/Typography" import { trackAccordionClick } from "@scandic-hotels/tracking/componentEvents" +import { useBookingFlowConfig } from "../../../bookingFlowConfig/bookingFlowConfigContext" +import { routeToScandicWebUrl } from "../../../utils/routeToScandicWebUrl" import AdditionalAmenities from "../../AdditionalAmenities" import Contact from "../../Contact" import BreakfastAccordionItem from "../../SidePeekAccordions/BreakfastAccordionItem" @@ -33,6 +35,9 @@ export function HotelSidePeekContent({ additionalHotelData, }: HotelSidePeekContentProps) { const intl = useIntl() + const isScandicPartner = useBookingFlowConfig().variant !== "scandic" + const hotelUrl = + isScandicPartner && hotel.url ? routeToScandicWebUrl(hotel.url) : hotel.url return (