Free scan

Fix "Automatic refresh or redirect" in HTML

Why it's a problem

A <meta http-equiv="refresh"> tag with a delay reloads or leaves the page without the user asking. Someone reading slowly, using a screen reader or filling in a field loses their place and their input mid-task.

How to fix it — HTML

For a redirect, do it server-side (HTTP 301 or 308) — search engines prefer that too. For a page that must update, refresh only the relevant region in JavaScript, or offer a “Refresh” button. axe-core tolerates a delay of 0 (immediate redirect); any delay from one second to twenty hours is flagged.

Avoid
<!-- Recharge la page toutes les 30 secondes -->
<meta http-equiv="refresh" content="30">

<!-- Redirige après 5 secondes -->
<meta http-equiv="refresh" content="5; url=/nouvelle-adresse">
Correct
<!-- Redirection : côté serveur, par exemple dans nginx -->
<!-- location = /ancienne-adresse { return 301 /nouvelle-adresse; } -->

<!-- Mise à jour : l'utilisateur garde la main -->
<button type="button" id="actualiser">Actualiser les résultats</button>
<div aria-live="polite" id="resultats">…</div>

Check your site in 30 seconds

Conformly detects this kind of issue across all your pages, continuously, and alerts you on every regression.

Free scan

Other fixes