Skip to content

Commit

Permalink
Merge pull request #3440 from alphagov/add-public-layout-parameter
Browse files Browse the repository at this point in the history
Add for_static: true to all calls to layout_for_public component
  • Loading branch information
KludgeKML authored Sep 24, 2024
2 parents 07899f1 + a571c1d commit 547e3cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/views/root/_error_page.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
%>
<%= render "govuk_publishing_components/components/layout_for_public", {
for_static: true,
emergency_banner: emergency_banner,
full_width: false,
global_bar: user_satisfaction_survey + global_bar,
Expand Down
1 change: 1 addition & 0 deletions app/views/root/_gem_base.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
%>
<%= render "govuk_publishing_components/components/layout_for_public", {
for_static: true,
account_nav_location: account_nav_location,
**(defined?(blue_bar) ? {blue_bar: blue_bar,} : {}),
draft_watermark: draft_environment,
Expand Down

0 comments on commit 547e3cb

Please sign in to comment.