Skip to content

Commit

Permalink
Merge pull request #7867 from alphagov/switch-rendering-ww-cips
Browse files Browse the repository at this point in the history
Switch the rendering of worldwide CIPs to government-frontend
  • Loading branch information
jkempster34 committed Jun 29, 2023
2 parents f687f72 + 354b41f commit 9755b60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions app/models/corporate_information_page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,7 @@ def about_page?
end

def rendering_app
if worldwide_organisation.present?
Whitehall::RenderingApp::WHITEHALL_FRONTEND
else
Whitehall::RenderingApp::GOVERNMENT_FRONTEND
end
Whitehall::RenderingApp::GOVERNMENT_FRONTEND
end

def previously_published
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class BasicCorporateInformationPageTest < TestCase
document_type: corporate_information_page.display_type_key,
locale: "en",
publishing_app: Whitehall::PublishingApp::WHITEHALL,
rendering_app: Whitehall::RenderingApp::WHITEHALL_FRONTEND,
rendering_app: Whitehall::RenderingApp::GOVERNMENT_FRONTEND,
public_updated_at: corporate_information_page.updated_at,
routes: [{ path: public_path, type: "exact" }],
redirects: [],
Expand Down

0 comments on commit 9755b60

Please sign in to comment.