Skip to content
New: Customize your theme with an AI assistant. Read the guide

Quick Exit

Files: src/config/config.toml, src/i18n/<lang>.json · Skill level: Beginner

Someone reading about divorce or domestic abuse on a shared phone or laptop may need to leave the page fast. The Quick exit button sends them straight to an ordinary page, such as a weather forecast, and replaces the current page in the browser history, so pressing Back doesn’t bring them back to what they were reading.

The Home 3 header with the Quick exit button next to the consultation button

Where It Shows

By default the button is in the transparent header, which Home 3 (/home-family/) uses, because that homepage is written for family and private client work. On phones it sits next to the menu button, and the mobile menu has it too.

Visitors can also press Escape twice within one second, on any page that shows the button. An Escape that closes a menu, a submenu, or the mobile menu doesn’t count, so closing menus never sends anyone away by surprise.

When the button is clicked, the page is hidden first, so nothing stays on screen while the next page loads.

Settings

src/config/config.toml
[settings.quickExit]
enable = true
everyPage = false
url = "https://www.bbc.co.uk/weather"
label = ""
SettingWhat it does
enablefalse removes the button and the Escape shortcut everywhere
everyPagetrue adds the button to the panel and bar headers too, so it is on every page
urlWhere the button goes. Pick a page that looks ordinary in your country, such as a local weather or news site
labelThe button text. Empty uses header.quickExit (“Quick exit”) in src/i18n/<lang>.json

The tooltip on the button is header.quickExitHint in the same files: “Leave this site now. You can also press Escape twice.” Change both in every language.

Room In The Header

Wherever the button shows, the header row makes room for it:

  • The header language menu shows the short code (EN, FR, AR) below 1440 px wide.
  • The consultation button shows from 1320 px wide, or from 1440 px in the panel header.

The menu still has Contact, and the mobile menu keeps the consultation button, so nothing is lost on smaller screens.

Tell Visitors About It

A quick exit button can’t clear the browser history. A visitor who needs to hide their visit should also use a private window, or delete this site from their history afterwards. Consider saying so in a short note on your family law page or in your FAQ.

For Developers

The button and its script are src/layouts/components/global/header/QuickExit.astro. Header.astro decides where it shows. Any link with data-quick-exit leaves the site the same way.

Do It With AI

In this Covena site, show the Quick exit button on every page and send it to [URL].
In src/config/config.toml under [settings.quickExit], set everyPage = true and
url = "[URL]". Don't change anything else. Then check the header at 1024, 1320 and
1440 px wide, and at 375 px.
Type something to search...