diff --git a/onward/app/controllers/MostPopularController.scala b/onward/app/controllers/MostPopularController.scala index 140e86c48de..41025cceeea 100644 --- a/onward/app/controllers/MostPopularController.scala +++ b/onward/app/controllers/MostPopularController.scala @@ -206,7 +206,16 @@ class MostPopularController( def renderWithDeeplyRead(): Action[AnyContent] = Action.async { implicit request => - val edition = Edition(request) + val headers = request.headers.toSimpleMap + val countryCode = headers.getOrElse("X-GU-GeoLocation", "country:row").replace("country:", "") + val edition = countryCode match { + case "GB" => editions.Uk + case "US" => editions.Us + case "CA" => editions.Us + case "AU" => editions.Au + case "NZ" => editions.Au + case _ => Edition.defaultEdition + } // Synchronous edition popular, from the mostPopularAgent (stateful) val editionPopular: Option[MostPopularCollectionResponse] = {