1. Collections Component Guide
  2. Page title
  3. With context link
Page title example

With context link

It’s unclear if links in the context of a title are useful and are being clicked by users. Data attributes are included to track this behaviour.

Context links are used on topic pages where there is also a breadcrumb.

How it looks (preview)


My page title

How to call this example

<%= render "govuk_publishing_components/components/title", {
  context: {
    text: "Publication",
    href: "/link",
    data: {
      some_tracking_parameter: "tracking-param"
  title: "My page title"
} %>