From 2ad546320131d240b9db01e546747cc08b5fcace Mon Sep 17 00:00:00 2001 From: Alan Cruikshanks Date: Wed, 22 Nov 2023 22:55:13 +0000 Subject: [PATCH] Remove back-link nunjucks includes https://eaflood.atlassian.net/browse/WATER-4131 We created a generic back-link includes file for our Nunjucks template as part of building the new billing pages. It was initially built when we thought the requirement was to return users back to where they came from. But working with our designers we're all agreed that back-links in the service should take users to specific places. They should _not_ just be a stand-in for the browser back button. This means we never intend to use this includes file and we don't want those unaware of this decision to inadvertently make use of it. So, this change yeet's it from the codebase! --- app/views/includes/back-link.njk | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 app/views/includes/back-link.njk diff --git a/app/views/includes/back-link.njk b/app/views/includes/back-link.njk deleted file mode 100644 index a6192c3165..0000000000 --- a/app/views/includes/back-link.njk +++ /dev/null @@ -1,11 +0,0 @@ -{% if referrer %} - {% set backlink = referrer %} -{% else %} - {% set backlink = 'javascript:history.back()' %} -{% endif %} -{{ - govukBackLink({ - text: "Back", - href: backlink - }) -}}