Intervention example

Open suggestion link in new tab

When sending users to another online task, you don’t want to completely hijack their original flow on GOV.UK. Adding the option to open links in a new tab helps to address this. Link text should tell the user that the link opens in a new tab. Note: “(opens in a new tab)” is added to link text if the phrase isn’t included.

How it looks (preview)

You should renew your permit every 6 months. You can now apply for a permit online (opens in a new tab)

How to call this example

<%= render "govuk_publishing_components/components/intervention", {
  suggestion_text: "You should renew your permit every 6 months.",
  suggestion_link_text: "You can now apply for a permit online",
  suggestion_link_url: "www.google.com/permit",
  new_tab: true
} %>