feat(BOOK-55): Listen to SEO filter slugs when navigating to such page

Approved-by: Chuma Mcphoy (We Ahead)
Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2025-09-24 10:40:58 +00:00
parent f3b6c4a089
commit af4f544b8a
15 changed files with 141 additions and 61 deletions
@@ -64,7 +64,8 @@ export default async function DestinationCityPage({
} = destinationCityPage
const allHotels = await getHotelsByCityIdentifier(cityIdentifier)
const allFilters = getFiltersFromHotels(allHotels, lang)
const hotelFilters = getFiltersFromHotels(allHotels, lang)
const sortItems: HotelSortItem[] = [
{
label: intl.formatMessage({
@@ -92,7 +93,8 @@ export default async function DestinationCityPage({
<Suspense fallback={<DestinationCityPageSkeleton />}>
<DestinationDataProvider
allHotels={allHotels}
allFilters={allFilters}
hotelFilters={hotelFilters}
seoFilters={seo_filters}
sortItems={sortItems}
pathname={pathname}
>
@@ -67,7 +67,7 @@ export default async function DestinationCountryPage({
getHotelsByCountry(destination_settings.country),
getDestinationCityPagesByCountry(destination_settings.country),
])
const allFilters = getFiltersFromHotels(allHotels, lang)
const hotelFilters = getFiltersFromHotels(allHotels, lang)
const sortItems: HotelSortItem[] = [
{
@@ -91,7 +91,8 @@ export default async function DestinationCountryPage({
<DestinationDataProvider
allHotels={allHotels}
allCities={allCities}
allFilters={allFilters}
hotelFilters={hotelFilters}
seoFilters={seo_filters}
sortItems={sortItems}
pathname={pathname}
>