-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add error page for HTTP 400 #627
base: main
Are you sure you want to change the base?
Conversation
designer/server/src/views/400.njk
Outdated
{% extends 'layouts/page.njk' %} | ||
{% from "govuk/components/button/macro.njk" import govukButton %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Slowly trying to switch to double quotes everywhere in Nunjucks
{% extends 'layouts/page.njk' %} | |
{% from "govuk/components/button/macro.njk" import govukButton %} | |
{% extends "layouts/page.njk" %} | |
{% from "govuk/components/button/macro.njk" import govukButton %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done for a few pages I found
designer/server/src/views/400.njk
Outdated
{% call appPageBody({ | ||
heading: pageHeading | ||
}) %} | ||
<p class="govuk-body">The service couldn't process your request.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does "process your request" mean to a user?
Watch out for the negative contraction "couldn't" too
<p class="govuk-body">The service couldn't process your request.</p> | |
<p class="govuk-body">The service could not process your request.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've put the question to Dan, will look to merge this unless they weigh in and let them improve it later.
Quality Gate passedIssues Measures |
Supports 368034 to present a friendly error rather than JSON if the user changes the URL parameters.