1. Component Guide
  2. Intervention
  3. Open suggestion link in new tab
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)

How to call this example

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