Skip to main content

JavaScript Redirects

Pages which, when rendered, were redirected to another URL by JavaScript.

Priority: Low

Impact: Negative

What issues it may causeโ€‹

These redirects require the page to be rendered by search engines which may take longer to be processed than a server-side redirect. Google recommends using server-side redirects instead of JavaScript redirects if possible.

If the search engines are having issues rendering the pages, the redirect may not be seen at all.

How do you fix itโ€‹

Configure server-side redirects instead of JavaScript redirects.

What is the positive impactโ€‹

Search engines will process the redirects more quickly.

How to fetch the data for this report templateโ€‹

You will need to run a crawl for report template to generate report. When report has been generated and you have crawl id you can fetch data for the report using the following query:

query GetReportForCrawl($crawlId: ObjectID!, $reportTemplateCode: String!) {
getCrawl(id: $crawlId) {
reportsByCode(
input: {
reportTypeCodes: Basic
reportTemplateCodes: [$reportTemplateCode]
}
) {
rows {
nodes {
... on CrawlUrls {
url
redirectChain
redirectedToUrl
foundAtUrl
httpStatusCode
deeprank
level
redirectedToStatusCode
redirectCount
foundInGoogleAnalytics
foundInGoogleSearchConsole
foundInBacklinks
foundInList
foundInLogSummary
foundInWebCrawl
foundInSitemap
}
}
}
}
}
}

Try in explorer