From ec04608bba7c24b5fac9bc73b0fd8e128f7c8d61 Mon Sep 17 00:00:00 2001 From: Katherine Martin <78093815+martikat@users.noreply.github.com> Date: Thu, 25 Apr 2024 10:33:48 +0100 Subject: [PATCH] Address bugs from QA --- app/controllers/pages_controller.rb | 6 +++++- app/views/pages/side_nav.slim | 2 +- config/locales/en.yml | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index e53e133e..1f782390 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -9,7 +9,11 @@ def index end def show - render page.to_partial_path + if page.nil? + render 'errors/not_found' + else + render page.to_partial_path + end end private diff --git a/app/views/pages/side_nav.slim b/app/views/pages/side_nav.slim index c96ba8ad..e9ccd360 100644 --- a/app/views/pages/side_nav.slim +++ b/app/views/pages/side_nav.slim @@ -5,7 +5,7 @@ = render partial: 'hero', locals: { hero: page.hero } .govuk-grid-row - .govuk-grid-column-one-quarter.sticky.mob-section + .govuk-grid-column-one-quarter.sticky.mob-section class='govuk-!-margin-bottom-4' input#menu-icon-chk.menu-btn[type="checkbox" name="menu-icon" checked] label.menu-icon.govuk-body-l[for="menu-icon-chk"] svg[xmlns="http://www.w3.org/2000/svg" height="1em" viewbox="0 0 448 512"] diff --git a/config/locales/en.yml b/config/locales/en.yml index 42b7b464..42041fc2 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -134,4 +134,4 @@ en: blank: Last name must not be blank settings: cookie_policy_legend: Do you want to accept analytics cookies? - preferences_saved_html: Your cookie settings were saved
Go back to Help for early years providers + preferences_saved_html: Your cookie settings were saved. [Go back to Help for early years providers](%{return_url}).