Back link

Code

Markup

<a href="#" class="govuk-back-link">Back</a>

Macro

{% from "back-link/macro.njk" import govukBackLink %}

{{ govukBackLink({
  "href": "#"
}) }}

Back link with custom text

(open in a new window)
Code

Markup

<a href="#" class="govuk-back-link">Back to home</a>

Macro

{% from "back-link/macro.njk" import govukBackLink %}

{{ govukBackLink({
  "href": "#",
  "text": "Back to home"
}) }}