There's this nice blog [3] that explains why they chose Shift instead of other keys, and also gives a nice overview of the pattern.
[1] https://design-system.service.gov.uk/patterns/exit-a-page-qu... [2] https://design-system.service.gov.uk/components/exit-this-pa... [3] https://beeps.website/blog/2024-10-09-why-govuk-exit-this-pa...
> If you are experiencing family violence, don't worry, the information within this pop-up won't appear in your browser's history.
Pages like Banks or Council websites have it in their footer, so people can lookup information without it appearing in their history
(a class="quickBrowserEscape ..." target="_blank" href="https://www.google.ca/") Need to leave site for your safety? Quick Escape
$('.quickBrowserEscape').on('click', function () {
document.body.style.opacity = 0;
document.title = 'New Tab';
window.open('https://www.weather.gc.ca/canada_e.html', '_blank');
window.location.replace($('.quickBrowserEscape').attr('href')); // removes current page session DOES NOT WORK IN IE
return false;
});
Would recommend picking random URLs from an array.This pattern is definitely better than most and it is refreshing seeing they put some resources into it. In my professional experience, organisations often chose the "a link to another site like google is fine" option to save money and time while still getting to boast about their security culture.
One thing I have not found much research on however, but would love to hear about, is the effect of these kinds of patterns on the user's speed and choice of actions and how that effects outcomes. What I mean by that is, say someone is visiting the site on their phone and an adversary walks into the room. Most people these days know the fastest way to leave a page at short notice - maybe the home button/gesture, maybe swipe to another open app. Does having a big red button that introduces a new choice help them, or add to the cognitive bandwidth needed to handle the situation?
Remember, by definition the type of situations that this component is intended to help with are going to be stressful and likely have little to no warning; the person is going to walk in the room and the user has moments to act.
What is going to lead to measurably better outcomes; a big red button that the user needs to read, understand and move their finger/hand to, or their own knowledge of their own device's most efficient escape mechanisms?
This isn't meant as a criticism of the component. I am just genuinely curious as to what the best tool to assist folks in this situation is? We are talking about real people with real fears and the possibility of very bad outcomes.
E.g. go to govt.nz and scroll to the bottom. There's a little icon of a computer that opens a popup element inside the page.
It gives information for victims of domestic violence and abuse.
If you ever call 911 and order a pizza, many of the dispatchers are trained to recognize that as "I am in danger and I need an officer to come to the house immediately. The person threatening me can hear this conversation."
It works b/c it gives you a plausible reason to give your address to someone over the phone and they can give you an ETA which is also plausible of "the pizza guy will be here in 20 minutes" etc.
For example, there is a favicon cache in firefox.
If you query favicons.sqlite in your profile directory:
select * from moz_pages_w_icons order by id desc limit 10;
Then you can see a recent history that isn't cleared up when you just clear history like this.But in testing, I found that history deletion was not possible everywhere. I opted to open a new tab with a harmless google search, so that the history would not exist in that tab. Meanwhile, the original tab is also redirected to a new page.
I'm going to investigate what the UK site did to look for any potential improvements I can make.
This is a good idea that deserves to be across all Police, Help, Domestic Violence, 911, Suicide Hotline, etc sites across all countries.
Why don't they inform users about how to properly use private mode, which works with any website, instead of rolling their own solution, which the user has to learn just for that one website?
If you need to hide your browsing history from an abusive partner, it would be more secure to use incognito mode and hit Alt+F4 when you need to escape. Unfortunately, Chrome renders incognito windows in dark mode by default. If you're normally on light mode, the transition is extremely conspicuous. Edge and Firefox do the same. It's as if all browser vendors have colluded to make it difficult to browse in secret.
Because same methods can also used by bad actors for deceptive and spammy actions and we are not allowed to have nice things ever.
Therefore Google has something against messing with browser navigation state back button behavior and history such actions usually got demoted in rankings.
I think it's also fine for all sort of marginal and ephemeral actions that should not spam the browser history, like panning over a map or how far you scrolled down a page, but want to end up back there on reload and shares possibly.
https://developers.google.com/search/blog/2026/04/back-butto...
It's good that a police department has chosen to do this with the misfeature, but the fact that there are non-abusive applications is not an excuse.