Merged in fix/explore-countrypages (pull request #1989)
Fix(SW-2513): Explore all hotels - country page links not showing * fix: fix issue with country page urls Approved-by: Michael Zetterberg Approved-by: Erik Tiekstra
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"country": "Danmark",
|
"country": "Danmark",
|
||||||
|
"countryUrl": "/da/destinationer/danmark",
|
||||||
"numberOfHotels": 27,
|
"numberOfHotels": 27,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
@@ -289,6 +290,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Norge",
|
"country": "Norge",
|
||||||
|
"countryUrl": "/da/destinationer/norge",
|
||||||
"numberOfHotels": 82,
|
"numberOfHotels": 82,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
@@ -567,6 +569,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Polen",
|
"country": "Polen",
|
||||||
|
"countryUrl": "/da/destinationer/polen",
|
||||||
"numberOfHotels": 2,
|
"numberOfHotels": 2,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
@@ -587,6 +590,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Sverige",
|
"country": "Sverige",
|
||||||
|
"countryUrl": "/da/destinationer/sverige",
|
||||||
"numberOfHotels": 88,
|
"numberOfHotels": 88,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
@@ -889,6 +893,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Tyskland",
|
"country": "Tyskland",
|
||||||
|
"countryUrl": "/da/destinationer/tyskland",
|
||||||
"numberOfHotels": 6,
|
"numberOfHotels": 6,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"country": "Dänemark",
|
"country": "Dänemark",
|
||||||
|
"countryUrl": "/de/reiseziele/danemark",
|
||||||
"numberOfHotels": 27,
|
"numberOfHotels": 27,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
@@ -105,6 +106,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Deutschland",
|
"country": "Deutschland",
|
||||||
|
"countryUrl": "/de/reiseziele/deutschland",
|
||||||
"numberOfHotels": 6,
|
"numberOfHotels": 6,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
@@ -139,6 +141,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Finnland",
|
"country": "Finnland",
|
||||||
|
"countryUrl": "/de/reiseziele/finnland",
|
||||||
"numberOfHotels": 52,
|
"numberOfHotels": 52,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
@@ -322,6 +325,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Norwegen",
|
"country": "Norwegen",
|
||||||
|
"countryUrl": "/de/reiseziele/norwegen",
|
||||||
"numberOfHotels": 82,
|
"numberOfHotels": 82,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
@@ -600,6 +604,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Polen",
|
"country": "Polen",
|
||||||
|
"countryUrl": "/de/reiseziele/polen",
|
||||||
"numberOfHotels": 2,
|
"numberOfHotels": 2,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
@@ -620,6 +625,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Schweden",
|
"country": "Schweden",
|
||||||
|
"countryUrl": "/de/reiseziele/schweden",
|
||||||
"numberOfHotels": 88,
|
"numberOfHotels": 88,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"country": "Norja",
|
"country": "Norja",
|
||||||
|
"countryUrl": "/fi/kohteet/norja",
|
||||||
"numberOfHotels": 82,
|
"numberOfHotels": 82,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
@@ -279,6 +280,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Puola",
|
"country": "Puola",
|
||||||
|
"countryUrl": "/fi/kohteet/puola",
|
||||||
"numberOfHotels": 2,
|
"numberOfHotels": 2,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
@@ -299,6 +301,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Ruotsi",
|
"country": "Ruotsi",
|
||||||
|
"countryUrl": "/fi/kohteet/ruotsi",
|
||||||
"numberOfHotels": 88,
|
"numberOfHotels": 88,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
@@ -601,6 +604,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Saksa",
|
"country": "Saksa",
|
||||||
|
"countryUrl": "/fi/kohteet/saksa",
|
||||||
"numberOfHotels": 6,
|
"numberOfHotels": 6,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
@@ -635,6 +639,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Suomi",
|
"country": "Suomi",
|
||||||
|
"countryUrl": "/fi/kohteet/suomi",
|
||||||
"numberOfHotels": 52,
|
"numberOfHotels": 52,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
@@ -818,6 +823,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Tanska",
|
"country": "Tanska",
|
||||||
|
"countryUrl": "/fi/kohteet/tanska",
|
||||||
"numberOfHotels": 27,
|
"numberOfHotels": 27,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"country": "Danmark",
|
"country": "Danmark",
|
||||||
|
"countryUrl": "/no/destinasjoner/danmark",
|
||||||
"numberOfHotels": 27,
|
"numberOfHotels": 27,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
@@ -289,6 +290,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Norge",
|
"country": "Norge",
|
||||||
|
"countryUrl": "/no/destinasjoner/norge",
|
||||||
"numberOfHotels": 82,
|
"numberOfHotels": 82,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
@@ -567,6 +569,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Polen",
|
"country": "Polen",
|
||||||
|
"countryUrl": "/no/destinasjoner/polen",
|
||||||
"numberOfHotels": 2,
|
"numberOfHotels": 2,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
@@ -587,6 +590,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Sverige",
|
"country": "Sverige",
|
||||||
|
"countryUrl": "/no/destinasjoner/sverige",
|
||||||
"numberOfHotels": 88,
|
"numberOfHotels": 88,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
@@ -889,6 +893,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Tyskland",
|
"country": "Tyskland",
|
||||||
|
"countryUrl": "/no/destinasjoner/tyskland",
|
||||||
"numberOfHotels": 6,
|
"numberOfHotels": 6,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"country": "Danmark",
|
"country": "Danmark",
|
||||||
|
"countryUrl": "/sv/destinationer/danmark",
|
||||||
"numberOfHotels": 27,
|
"numberOfHotels": 27,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
@@ -289,6 +290,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Norge",
|
"country": "Norge",
|
||||||
|
"countryUrl": "/sv/destinationer/norge",
|
||||||
"numberOfHotels": 82,
|
"numberOfHotels": 82,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
@@ -567,6 +569,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Polen",
|
"country": "Polen",
|
||||||
|
"countryUrl": "/sv/destinationer/polen",
|
||||||
"numberOfHotels": 2,
|
"numberOfHotels": 2,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
@@ -587,6 +590,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Sverige",
|
"country": "Sverige",
|
||||||
|
"countryUrl": "/sv/destinationer/sweden",
|
||||||
"numberOfHotels": 88,
|
"numberOfHotels": 88,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
@@ -889,6 +893,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"country": "Tyskland",
|
"country": "Tyskland",
|
||||||
|
"countryUrl": "/sv/destinationer/tyskland",
|
||||||
"numberOfHotels": 6,
|
"numberOfHotels": 6,
|
||||||
"cities": [
|
"cities": [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ import {
|
|||||||
TrackingChannelEnum,
|
TrackingChannelEnum,
|
||||||
type TrackingSDKPageData,
|
type TrackingSDKPageData,
|
||||||
} from "@/types/components/tracking"
|
} from "@/types/components/tracking"
|
||||||
|
import { ApiCountry, type Country } from "@/types/enums/country"
|
||||||
import type {
|
import type {
|
||||||
GetDestinationOverviewPageData,
|
GetDestinationOverviewPageData,
|
||||||
GetDestinationOverviewPageRefsSchema,
|
GetDestinationOverviewPageRefsSchema,
|
||||||
@@ -241,7 +242,8 @@ export const destinationOverviewPageQueryRouter = router({
|
|||||||
|
|
||||||
const countryPages = await getCountryPageUrls(lang)
|
const countryPages = await getCountryPageUrls(lang)
|
||||||
const countryPage = countryPages.find(
|
const countryPage = countryPages.find(
|
||||||
(countryPage) => countryPage.country === country
|
(countryPage) =>
|
||||||
|
ApiCountry[lang][countryPage.country as Country] === country
|
||||||
)
|
)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user