Max Redirections
Redirect chains which exceed the maximum number of redirects specified in Advanced settings > Report settings (default: 4 redirections).
Priority: High
Impact: Negative
What issues it may cause
Search engine crawlers will only follow a limited number of redirects in a chain before stopping and resuming later, which can cause delays in being processed.
A large number of redirects may result in a noticable delay for users so it can also have an impact on user experience.
Redirect chains will consume more crawl budget than a redirect chain with a single step.
How do you fix it
The redirect chains should be reviewed for opportunities to update to use fewer steps by redirecting them directly to the final redirect target.
What is the positive impact
Crawl budget spent on the unnecessary redirect steps may be reduced, allowing crawl budget to be used on more important pages, or save on server costs.
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
- Variables
- cURL
query GetReportForCrawl($crawlId: ObjectID!, $reportTemplateCode: String!) {
getCrawl(id: $crawlId) {
reportsByCode(
input: {
reportTypeCodes: Basic
reportTemplateCodes: [$reportTemplateCode]
}
) {
rows {
nodes {
... on CrawlUrls {
url
redirectChain
redirectedToUrl
foundAtUrl
deeprank
level
redirectCount
contentSize
isRedirectLoop
metaRedirect
redirectedToStatusCode
foundInGoogleAnalytics
foundInGoogleSearchConsole
foundInBacklinks
foundInList
foundInLogSummary
foundInWebCrawl
foundInSitemap
}
}
}
}
}
}
{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"max_redirections"}
curl -X POST -H "Content-Type: application/json" -H "apollographql-client-name: docs-example-client" -H "apollographql-client-version: 1.0.0" -H "x-auth-token: YOUR_API_SESSION_TOKEN" --data '{"query":"query GetReportForCrawl($crawlId: ObjectID!, $reportTemplateCode: String!) { getCrawl(id: $crawlId) { reportsByCode( input: { reportTypeCodes: Basic reportTemplateCodes: [$reportTemplateCode] } ) { rows { nodes { ... on CrawlUrls { url redirectChain redirectedToUrl foundAtUrl deeprank level redirectCount contentSize isRedirectLoop metaRedirect redirectedToStatusCode foundInGoogleAnalytics foundInGoogleSearchConsole foundInBacklinks foundInList foundInLogSummary foundInWebCrawl foundInSitemap } } } } } }","variables":{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"max_redirections"}}' https://api.lumar.io/graphql