Skip to content

Commit

Permalink
Add for_static: true to all calls to layout_for_public component
Browse files Browse the repository at this point in the history
- Currently does nothing, but the component will be updated to only return the wrapper block (as per current behaviour) if this parameter is present.
  • Loading branch information
KludgeKML committed Sep 24, 2024
1 parent 07899f1 commit a571c1d
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 a571c1d

Please sign in to comment.