- Class
- C4 Informational
- Weight
- 0
- Severity on fail
- info
- Applies to
Test this rule on a live site with the redirect checker. Free, no account needed.
Scope and evidence
Evaluated on page (P). The book marks this requirement .
Info when inline scripts assign location, location.href, or call location.replace or location.assign at top level. Heuristic, hence informational.
Observations
Each condition has a stable code and a reason template. The evaluator fills the placeholders from observed values only; no sentence in a report is generated.
client_side_redirect{url} contains an inline script that assigns location ({snippet}). Google says: "Only use JavaScript redirects if you can't do server-side or meta refresh redirects." This detection is heuristic.
Sources, quoted
These are the passages the rule rests on, stored once in the knowledge base and emitted exactly as written. A citation marked for specific conditions appears only on findings with those codes.
“Only use JavaScript redirects if you can't do server-side or meta refresh redirects.”
[G-REDIRECTS] Redirects and Google Search · JavaScript location redirects · last updated 2026-04-14
https://developers.google.com/search/docs/crawling-indexing/301-redirects