Skip to content

Commit

Permalink
Remove US nav redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
arelra committed May 3, 2024
1 parent 40b7e96 commit 24aa374
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
13 changes: 8 additions & 5 deletions common/app/navigation/NavLinks.scala
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ object NavLinks {
NavLink("Environment", "/us/environment", children = List(climateCrisis, wildlife, energy, pollution, greenLight))

val money = NavLink("Money", "/money", children = List(property, pensions, savings, borrowing, careers))
val usMoney = NavLink("Money", "/us/money", children = List(property, pensions, savings, borrowing, careers))
val ukBusiness = NavLink(
"Business",
"/business",
Expand Down Expand Up @@ -164,13 +165,15 @@ object NavLinks {

/* CULTURE */
val film = NavLink("Film", "/film")
val usFilm = NavLink("Film", "/us/film")
val tvAndRadio = NavLink("TV & radio", "/tv-and-radio")
val usTvAndRadio = NavLink("TV & radio", "/us/tv-and-radio")
val music = NavLink("Music", "/music")
val games = NavLink("Games", "/games")
val books = NavLink("Books", "/books")
val artAndDesign = NavLink("Art & design", "/artanddesign")
val stage = NavLink("Stage", "/stage")
val classical = NavLink("Classical", "/music/classicalmusicandopera")
val classical = NavLink("Classical", "/music/classical-music-and-opera")

/* LIFE */
val fashion = NavLink("Fashion", "/fashion")
Expand All @@ -194,7 +197,7 @@ object NavLinks {
val travelAustralasia = NavLink("Australasia", "/travel/australasia")
val travelAsia = NavLink("Asia", "/travel/asia")
val ukTravel = NavLink("Travel", "/travel", children = List(travelUk, travelEurope, travelUs))
val usTravel = ukTravel.copy(children = List(travelUs, travelEurope, travelUk))
val usTravel = NavLink("Travel", "/us/travel", children = List(travelUs, travelEurope, travelUk))
val auTravel = ukTravel.copy(children = List(travelAustralasia, travelAsia, travelUk, travelEurope, travelUs))
val usWellness = NavLink("Wellness", "/us/wellness")

Expand Down Expand Up @@ -473,11 +476,11 @@ object NavLinks {
)
val usCulturePillar = ukCulturePillar.copy(
children = List(
film,
usFilm,
books,
music,
artAndDesign,
tvAndRadio,
usTvAndRadio,
stage,
classical,
games,
Expand Down Expand Up @@ -540,7 +543,7 @@ object NavLinks {
health,
family,
usTravel,
money,
usMoney,
),
)
val intLifestylePillar = ukLifestylePillar.copy(
Expand Down
18 changes: 9 additions & 9 deletions common/test/resources/reference-navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@
},
{
"title": "Classical",
"url": "/music/classicalmusicandopera",
"url": "/music/classical-music-and-opera",
"children": [],
"classList": []
}
Expand Down Expand Up @@ -1385,7 +1385,7 @@
"children": [
{
"title": "Film",
"url": "/film",
"url": "/us/film",
"children": [],
"classList": []
},
Expand All @@ -1409,7 +1409,7 @@
},
{
"title": "TV & radio",
"url": "/tv-and-radio",
"url": "/us/tv-and-radio",
"children": [],
"classList": []
},
Expand All @@ -1421,7 +1421,7 @@
},
{
"title": "Classical",
"url": "/music/classicalmusicandopera",
"url": "/music/classical-music-and-opera",
"children": [],
"classList": []
},
Expand Down Expand Up @@ -1490,7 +1490,7 @@
},
{
"title": "Travel",
"url": "/travel",
"url": "/us/travel",
"children": [
{
"title": "US",
Expand All @@ -1515,7 +1515,7 @@
},
{
"title": "Money",
"url": "/money",
"url": "/us/money",
"children": [
{
"title": "Property",
Expand Down Expand Up @@ -2145,7 +2145,7 @@
},
{
"title": "Classical",
"url": "/music/classicalmusicandopera",
"url": "/music/classical-music-and-opera",
"children": [],
"classList": []
}
Expand Down Expand Up @@ -2936,7 +2936,7 @@
},
{
"title": "Classical",
"url": "/music/classicalmusicandopera",
"url": "/music/classical-music-and-opera",
"children": [],
"classList": []
},
Expand Down Expand Up @@ -3928,7 +3928,7 @@
},
{
"title": "Classical",
"url": "/music/classicalmusicandopera",
"url": "/music/classical-music-and-opera",
"children": [],
"classList": []
},
Expand Down

0 comments on commit 24aa374

Please sign in to comment.