Skip to content

Commit

Permalink
Merge pull request #7880 from alphagov/revert-7867-switch-rendering-w…
Browse files Browse the repository at this point in the history
…w-cips

Revert "Switch the rendering of worldwide CIPs to government-frontend"
  • Loading branch information
jkempster34 committed Jun 29, 2023
2 parents 82c3f90 + 5eae907 commit 666349e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/models/corporate_information_page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,11 @@ def about_page?
end

def rendering_app
Whitehall::RenderingApp::GOVERNMENT_FRONTEND
if worldwide_organisation.present?
Whitehall::RenderingApp::WHITEHALL_FRONTEND
else
Whitehall::RenderingApp::GOVERNMENT_FRONTEND
end
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::GOVERNMENT_FRONTEND,
rendering_app: Whitehall::RenderingApp::WHITEHALL_FRONTEND,
public_updated_at: corporate_information_page.updated_at,
routes: [{ path: public_path, type: "exact" }],
redirects: [],
Expand Down

0 comments on commit 666349e

Please sign in to comment.