diff --git a/app/presenters/worldwide_organisation/branding.rb b/app/presenters/worldwide_organisation/branding.rb index bdfaabf488..e25396df87 100644 --- a/app/presenters/worldwide_organisation/branding.rb +++ b/app/presenters/worldwide_organisation/branding.rb @@ -7,7 +7,7 @@ def organisation_logo sponsoring_organisation = sponsoring_organisations&.first { - name: content_item["title"], + name: content_item.dig("details", "logo", "formatted_title").html_safe, url: link_to_organisation ? worldwide_organisation.base_path : nil, crest: sponsoring_organisation&.dig("details", "logo", "crest") || DEFAULT_ORGANISATION_LOGO, brand: sponsoring_organisation&.dig("details", "brand") || DEFAULT_ORGANISATION_LOGO, diff --git a/test/integration/worldwide_organisation_test.rb b/test/integration/worldwide_organisation_test.rb index 9c271f84bb..c4b9563804 100644 --- a/test/integration/worldwide_organisation_test.rb +++ b/test/integration/worldwide_organisation_test.rb @@ -3,7 +3,7 @@ class WorldwideOrganisationTest < ActionDispatch::IntegrationTest test "renders basic worldwide organisation page" do setup_and_visit_content_item("worldwide_organisation") - assert_has_component_title(@content_item["title"]) + assert_has_component_title("British Deputy High Commission\nHyderabad") assert page.has_text?(@content_item["description"]) end