Exit This Page provides the GOV.UK Design System "Exit this page" pattern for Drupal. Content editors can flag pages with a prominent banner that allows a user to leave the site quickly and discreetly, removing the last page from their browsing history.
Features
- A sticky banner with a one-click exit link, shown on flagged content only.
- A keyboard shortcut (pressing Shift three times within five seconds) that triggers the same exit, for keyboard users.
- Screen reader announcements of remaining shift presses and loading state.
- A full-screen overlay that blanks the page instantly on activation, before navigating away.
- The current history entry is replaced, so the browser "back" button doesn't return to the flagged page.
- A configurable exit URL — defaults to the BBC Weather homepage, an innocuous, commonly visited site.
Configuration
- Set the exit URL at Configuration > Content > Exit This Page
(/admin/config/content/exit-this-page). - On a node's edit form, enable "Enable 'Exit this page'" in the "Exit this page" sidebar group to show the banner on that
content.
Supporting organizations:
Funded the original development
Project information
- Project categories: Accessibility, Content display
3 sites report using this module
- Created by danchamp on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.





