Skip to content

Commit 4073c0a

Browse files
Merge branch 'main' into ahe/product-summary-element
2 parents ed40b3f + b84c7ae commit 4073c0a

5 files changed

Lines changed: 51 additions & 186 deletions

File tree

common/app/navigation/FooterLinks.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ object FooterLinks {
4747
def taxStrategy(edition: String): FooterLink =
4848
FooterLink(
4949
"Tax strategy",
50-
"https://uploads.guim.co.uk/2025/09/05/Tax_strategy_for_the_year_ended_31_March_2025.pdf",
50+
"https://uploads.guim.co.uk/2026/07/22/STL_Global_Tax_Strategy_for_the_year_to_31_March_2027.pdf",
5151
s"${edition} : footer : tax strategy",
5252
)
5353
def newsletters(edition: String): FooterLink = {

common/app/navigation/NavLinks.scala

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,11 @@ object NavLinks {
117117
private val footballCompetitions = NavLink("Competitions", "/football/competitions", Some("football/competitions"))
118118
private val footballClubs = NavLink("Clubs", "/football/teams", Some("football/teams"))
119119
private val soccerSchedules = footballFixtures.copy(title = "Schedules")
120-
private val footballWorldCup2026 = NavLink("World Cup 2026", "/football/world-cup-2026")
121120

122121
val football = NavLink(
123122
"Football",
124123
"/football",
125124
children = List(
126-
footballWorldCup2026,
127125
footballScores,
128126
footballTables,
129127
footballFixtures,
@@ -136,7 +134,6 @@ object NavLinks {
136134
"Soccer",
137135
"/us/soccer",
138136
children = List(
139-
footballWorldCup2026,
140137
footballScores,
141138
footballTables,
142139
soccerSchedules,
@@ -276,7 +273,6 @@ object NavLinks {
276273
iconName = Some("home"),
277274
List(
278275
ukNews,
279-
footballWorldCup2026,
280276
usPolitics,
281277
world,
282278
climateCrisis,
@@ -299,7 +295,6 @@ object NavLinks {
299295
world,
300296
auPolitics,
301297
auEnvironment,
302-
footballWorldCup2026,
303298
climateCrisis,
304299
indigenousAustralia,
305300
auImmigration,
@@ -316,12 +311,12 @@ object NavLinks {
316311
List(
317312
usNews,
318313
usPolitics,
319-
footballWorldCup2026,
320314
world,
321315
climateCrisis,
322316
middleEast,
323317
ukraine,
324318
usImmigration,
319+
usSoccer,
325320
usBusiness,
326321
usEnvironment,
327322
usTech,
@@ -334,7 +329,6 @@ object NavLinks {
334329
val intNewsPillar = ukNewsPillar.copy(
335330
children = List(
336331
world,
337-
footballWorldCup2026,
338332
usPolitics,
339333
ukNews,
340334
climateCrisis,
@@ -352,7 +346,6 @@ object NavLinks {
352346
val eurNewsPillar = ukNewsPillar.copy(
353347
children = List(
354348
world,
355-
footballWorldCup2026,
356349
ukNews,
357350
climateCrisis,
358351
ukraine,
@@ -423,7 +416,6 @@ object NavLinks {
423416
longTitle = Some("Sport home"),
424417
iconName = Some("home"),
425418
List(
426-
footballWorldCup2026,
427419
football,
428420
cricket,
429421
rugbyUnion,
@@ -439,7 +431,6 @@ object NavLinks {
439431
)
440432
val auSportPillar = ukSportPillar.copy(
441433
children = List(
442-
footballWorldCup2026,
443434
football,
444435
AFL,
445436
NRL,
@@ -453,7 +444,6 @@ object NavLinks {
453444
)
454445
val usSportPillar = ukSportPillar.copy(
455446
children = List(
456-
footballWorldCup2026,
457447
usSoccer,
458448
NFL,
459449
tennis,
@@ -468,7 +458,6 @@ object NavLinks {
468458
)
469459
val intSportPillar = ukSportPillar.copy(
470460
children = List(
471-
footballWorldCup2026,
472461
football,
473462
cricket,
474463
rugbyUnion,
@@ -481,7 +470,6 @@ object NavLinks {
481470
)
482471
val eurSportPillar = ukSportPillar.copy(
483472
children = List(
484-
footballWorldCup2026,
485473
football,
486474
cricket,
487475
rugbyUnion,

common/app/navigation/Navigation.scala

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -276,22 +276,7 @@ object NavMenu {
276276
currentParent.map(_.children).getOrElse(Nil)
277277
}
278278

279-
// Editorial: on the Football and Soccer fronts (and their child pages), the World Cup 2026
280-
// link should appear before the Football/Soccer self-link in the subnav. The default
281-
// ParentSubnav layout always renders the parent first, so we instead emit a FlatSubnav
282-
// with the World Cup promoted to first position, the parent self-link second, and the
283-
// remaining children following.
284-
//
285-
// Guarded on the first child being the World Cup link, so this special case
286-
// automatically disappears when the link is removed from NavLinks after the tournament.
287-
val isFootballOrSoccerSubnav =
288-
parent.exists(p => p.url == "/football" || p.url == "/us/soccer")
289-
val firstChildIsWorldCup =
290-
links.headOption.exists(_.url == "/football/world-cup-2026")
291-
292279
parent match {
293-
case Some(p) if isFootballOrSoccerSubnav && firstChildIsWorldCup =>
294-
Some(FlatSubnav(links.head +: p +: links.tail))
295280
case Some(p) => Some(ParentSubnav(p, links))
296281
case None if links.nonEmpty => Some(FlatSubnav(links))
297282
case None => None

common/test/navigation/NavigationTest.scala

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -128,55 +128,6 @@ import test.{ConfiguredTestSuite, WithMaterializer, WithTestContentApiClient, Wi
128128
subnav shouldBe Some(FlatSubnav(auCulturePillar.children))
129129
}
130130

131-
"On `/football`, the subnav" should "promote World Cup 2026 above the Football self-link" in {
132-
val edition = Uk
133-
val root = NavMenu.navRoot(edition)
134-
val maybeNavLink = NavMenu.findDescendantByUrl("/football", edition, root.children, root.otherLinks)
135-
val parent = maybeNavLink.flatMap(link => NavMenu.findParent(link, edition, root.children, root.otherLinks))
136-
val pillar = NavMenu.getPillar(parent, edition, root.children, root.otherLinks)
137-
val subnav = NavMenu.getSubnav(fakePage().metadata.customSignPosting, maybeNavLink, parent, pillar)
138-
139-
subnav match {
140-
case Some(FlatSubnav(links)) =>
141-
links.map(_.title).take(2) shouldBe List("World Cup 2026", "Football")
142-
links.map(_.url) should contain("/football")
143-
links.map(_.url) should contain("/football/world-cup-2026")
144-
case other => fail(s"Expected FlatSubnav with promoted World Cup, got $other")
145-
}
146-
}
147-
148-
"On `/football/tables`, the subnav" should "also promote World Cup 2026 above the Football self-link" in {
149-
val edition = Uk
150-
val root = NavMenu.navRoot(edition)
151-
val maybeNavLink = NavMenu.findDescendantByUrl("/football/tables", edition, root.children, root.otherLinks)
152-
val parent = maybeNavLink.flatMap(link => NavMenu.findParent(link, edition, root.children, root.otherLinks))
153-
val pillar = NavMenu.getPillar(parent, edition, root.children, root.otherLinks)
154-
val subnav = NavMenu.getSubnav(fakePage().metadata.customSignPosting, maybeNavLink, parent, pillar)
155-
156-
subnav match {
157-
case Some(FlatSubnav(links)) =>
158-
links.map(_.title).take(2) shouldBe List("World Cup 2026", "Football")
159-
case other => fail(s"Expected FlatSubnav with promoted World Cup, got $other")
160-
}
161-
}
162-
163-
"On `/us/soccer`, the subnav" should "promote World Cup 2026 above the Soccer self-link" in {
164-
val edition = Us
165-
val root = NavMenu.navRoot(edition)
166-
val maybeNavLink = NavMenu.findDescendantByUrl("/us/soccer", edition, root.children, root.otherLinks)
167-
val parent = maybeNavLink.flatMap(link => NavMenu.findParent(link, edition, root.children, root.otherLinks))
168-
val pillar = NavMenu.getPillar(parent, edition, root.children, root.otherLinks)
169-
val subnav = NavMenu.getSubnav(fakePage().metadata.customSignPosting, maybeNavLink, parent, pillar)
170-
171-
subnav match {
172-
case Some(FlatSubnav(links)) =>
173-
links.map(_.title).take(2) shouldBe List("World Cup 2026", "Soccer")
174-
links.map(_.url) should contain("/us/soccer")
175-
links.map(_.url) should contain("/football/world-cup-2026")
176-
case other => fail(s"Expected FlatSubnav with promoted World Cup, got $other")
177-
}
178-
}
179-
180131
"The section `Indigenous Australians`" should "still be in the pillar News in the Uk edition" in {
181132
val edition = Uk
182133
val root = NavMenu.navRoot(edition)

0 commit comments

Comments
 (0)