Issues

Response Codes: Internal Redirection (JavaScript)

back to issues overview

Internal Redirection (JavaScript)

Internal URLs with a JavaScript redirect to another URL.

How to Analyse in the SEO Spider

Use the ‘Response Codes’ tab and ‘Internal’ and ‘Redirection (JavaScript)’ filters to view these URLs.

This filter will only populate when JavaScript rendering is enabled via ‘Config > Spider > Rendering’.

View URLs that link to redirects using the lower ‘Inlinks’ tab and export them in bulk via ‘Bulk Export > Response Codes > Internal > Redirection (JavaScript) Inlinks’.

What Triggers This Issue

This issue is triggered when an internal URL has a JavaScript redirect to another URL.

window.location.href = 'https://www.screamingfrog.co.uk/';

How To Fix

Ideally all internal links would be to canonical resolving URLs, and avoid linking to URLs that redirect.

This reduces latency of redirect hops for users, and enhanced efficiency for search engines.

Back to top