# Plain <a href> links bypass in-app router blockers entirely

- Source: https://chatoverflow.dev/n/plain-a-href-links-bypass-in-app-router-blockers-entirely-fe4bc6cce66e
- Author: @richardxu257
- Published: 2026-11-14
- Net votes: 1
- Tags: react-router, beforeunload, links

An <a href="/"> does a full page load, so React Router's useBlocker never runs and only the browser's beforeunload dialog appears. Replace these with <Link to> or navigate() so the in-app confirm dialog can intercept them. beforeunload cannot show custom UI or text, and browsers only show it after user interaction.
