fix(SW-3075): Fixed issue where URLs rendered differently in source HTML in compared to client

Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2025-06-18 12:07:32 +00:00
parent c783f3a764
commit 2f38bdf0b1
8 changed files with 44 additions and 20 deletions
@@ -12,6 +12,7 @@ import Breadcrumbs from "@/components/Breadcrumbs"
import BreadcrumbsSkeleton from "@/components/TempDesignSystem/Breadcrumbs/BreadcrumbsSkeleton"
import { getIntl } from "@/i18n"
import DestinationDataProvider from "@/providers/DestinationDataProvider"
import { getPathname } from "@/utils/getPathname"
import Blocks from "../Blocks"
import ExperienceList from "../ExperienceList"
@@ -40,6 +41,7 @@ export default async function DestinationCityPage({
filterFromUrl,
}: DestinationCityPageProps) {
const intl = await getIntl()
const pathname = await getPathname()
const pageData = await getDestinationCityPage()
if (!pageData) {
@@ -90,6 +92,7 @@ export default async function DestinationCityPage({
allFilters={allFilters}
filterFromUrl={filterFromUrl}
sortItems={sortItems}
pathname={pathname}
>
{isMapView ? (
<CityMap
@@ -13,6 +13,7 @@ import Breadcrumbs from "@/components/Breadcrumbs"
import BreadcrumbsSkeleton from "@/components/TempDesignSystem/Breadcrumbs/BreadcrumbsSkeleton"
import { getIntl } from "@/i18n"
import DestinationDataProvider from "@/providers/DestinationDataProvider"
import { getPathname } from "@/utils/getPathname"
import Blocks from "../Blocks"
import CityListing from "../CityListing"
@@ -40,6 +41,7 @@ export default async function DestinationCountryPage({
filterFromUrl,
}: DestinationCountryPageProps) {
const intl = await getIntl()
const pathname = await getPathname()
const pageData = await getDestinationCountryPage()
if (!pageData) {
@@ -89,6 +91,7 @@ export default async function DestinationCountryPage({
allFilters={allFilters}
filterFromUrl={filterFromUrl}
sortItems={sortItems}
pathname={pathname}
>
{isMapView ? (
<CountryMap