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:
Matilda Landström
2025-05-07 10:25:50 +00:00
parent 33ef22ae23
commit 78cef80de0
6 changed files with 30 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
[
{
"country": "Danmark",
"countryUrl": "/da/destinationer/danmark",
"numberOfHotels": 27,
"cities": [
{
@@ -289,6 +290,7 @@
},
{
"country": "Norge",
"countryUrl": "/da/destinationer/norge",
"numberOfHotels": 82,
"cities": [
{
@@ -567,6 +569,7 @@
},
{
"country": "Polen",
"countryUrl": "/da/destinationer/polen",
"numberOfHotels": 2,
"cities": [
{
@@ -587,6 +590,7 @@
},
{
"country": "Sverige",
"countryUrl": "/da/destinationer/sverige",
"numberOfHotels": 88,
"cities": [
{
@@ -889,6 +893,7 @@
},
{
"country": "Tyskland",
"countryUrl": "/da/destinationer/tyskland",
"numberOfHotels": 6,
"cities": [
{

View File

@@ -1,6 +1,7 @@
[
{
"country": "Dänemark",
"countryUrl": "/de/reiseziele/danemark",
"numberOfHotels": 27,
"cities": [
{
@@ -105,6 +106,7 @@
},
{
"country": "Deutschland",
"countryUrl": "/de/reiseziele/deutschland",
"numberOfHotels": 6,
"cities": [
{
@@ -139,6 +141,7 @@
},
{
"country": "Finnland",
"countryUrl": "/de/reiseziele/finnland",
"numberOfHotels": 52,
"cities": [
{
@@ -322,6 +325,7 @@
},
{
"country": "Norwegen",
"countryUrl": "/de/reiseziele/norwegen",
"numberOfHotels": 82,
"cities": [
{
@@ -600,6 +604,7 @@
},
{
"country": "Polen",
"countryUrl": "/de/reiseziele/polen",
"numberOfHotels": 2,
"cities": [
{
@@ -620,6 +625,7 @@
},
{
"country": "Schweden",
"countryUrl": "/de/reiseziele/schweden",
"numberOfHotels": 88,
"cities": [
{

View File

@@ -1,6 +1,7 @@
[
{
"country": "Norja",
"countryUrl": "/fi/kohteet/norja",
"numberOfHotels": 82,
"cities": [
{
@@ -279,6 +280,7 @@
},
{
"country": "Puola",
"countryUrl": "/fi/kohteet/puola",
"numberOfHotels": 2,
"cities": [
{
@@ -299,6 +301,7 @@
},
{
"country": "Ruotsi",
"countryUrl": "/fi/kohteet/ruotsi",
"numberOfHotels": 88,
"cities": [
{
@@ -601,6 +604,7 @@
},
{
"country": "Saksa",
"countryUrl": "/fi/kohteet/saksa",
"numberOfHotels": 6,
"cities": [
{
@@ -635,6 +639,7 @@
},
{
"country": "Suomi",
"countryUrl": "/fi/kohteet/suomi",
"numberOfHotels": 52,
"cities": [
{
@@ -818,6 +823,7 @@
},
{
"country": "Tanska",
"countryUrl": "/fi/kohteet/tanska",
"numberOfHotels": 27,
"cities": [
{

View File

@@ -1,6 +1,7 @@
[
{
"country": "Danmark",
"countryUrl": "/no/destinasjoner/danmark",
"numberOfHotels": 27,
"cities": [
{
@@ -289,6 +290,7 @@
},
{
"country": "Norge",
"countryUrl": "/no/destinasjoner/norge",
"numberOfHotels": 82,
"cities": [
{
@@ -567,6 +569,7 @@
},
{
"country": "Polen",
"countryUrl": "/no/destinasjoner/polen",
"numberOfHotels": 2,
"cities": [
{
@@ -587,6 +590,7 @@
},
{
"country": "Sverige",
"countryUrl": "/no/destinasjoner/sverige",
"numberOfHotels": 88,
"cities": [
{
@@ -889,6 +893,7 @@
},
{
"country": "Tyskland",
"countryUrl": "/no/destinasjoner/tyskland",
"numberOfHotels": 6,
"cities": [
{

View File

@@ -1,6 +1,7 @@
[
{
"country": "Danmark",
"countryUrl": "/sv/destinationer/danmark",
"numberOfHotels": 27,
"cities": [
{
@@ -289,6 +290,7 @@
},
{
"country": "Norge",
"countryUrl": "/sv/destinationer/norge",
"numberOfHotels": 82,
"cities": [
{
@@ -567,6 +569,7 @@
},
{
"country": "Polen",
"countryUrl": "/sv/destinationer/polen",
"numberOfHotels": 2,
"cities": [
{
@@ -587,6 +590,7 @@
},
{
"country": "Sverige",
"countryUrl": "/sv/destinationer/sweden",
"numberOfHotels": 88,
"cities": [
{
@@ -889,6 +893,7 @@
},
{
"country": "Tyskland",
"countryUrl": "/sv/destinationer/tyskland",
"numberOfHotels": 6,
"cities": [
{

View File

@@ -41,6 +41,7 @@ import {
TrackingChannelEnum,
type TrackingSDKPageData,
} from "@/types/components/tracking"
import { ApiCountry, type Country } from "@/types/enums/country"
import type {
GetDestinationOverviewPageData,
GetDestinationOverviewPageRefsSchema,
@@ -241,7 +242,8 @@ export const destinationOverviewPageQueryRouter = router({
const countryPages = await getCountryPageUrls(lang)
const countryPage = countryPages.find(
(countryPage) => countryPage.country === country
(countryPage) =>
ApiCountry[lang][countryPage.country as Country] === country
)
return {