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:
+4
-2
@@ -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}
|
||||
>
|
||||
|
||||
+3
-2
@@ -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}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user