Redirect Loops
URL redirect chains which redirect back to themselves.
Priority: Critical
Impact: Negative
What issues it may cause
The browser will show an unfriendly redirect error message to users resulting in a poor user experience and increase the chances of an exit.
Search engines will not be able to process the redirect chain, so any link authority passed through the original link to the first step in the redirect chain will be lost.
How do you fix it
The redirect chain should be reviewed to determine the cause of the loop, and the redirect steps updated to ensure they end in a page with a 200 response.
What is the positive impact
Redirect chains are able to be crawled, reducing crawl budget waste and allowing PageRank to be conserved.
User experience will be improved, leading to a reduction in bounce/exit rates.
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 GetReportStatForCrawl(
$crawlId: ObjectID!
$reportTemplateCode: String!
$after: String
) {
getReportStat(
input: {crawlId: $crawlId, reportTemplateCode: $reportTemplateCode}
) {
crawlUrls(after: $after, reportType: Basic) {
nodes {
url
redirectChain
redirectedToUrl
foundAtUrl
deeprank
level
redirectCount
isRedirectLoop
metaRedirect
redirectedToStatusCode
foundInGoogleAnalytics
foundInGoogleSearchConsole
foundInBacklinks
foundInList
foundInLogSummary
foundInWebCrawl
foundInSitemap
}
totalCount
pageInfo {
endCursor
hasNextPage
}
}
}
}
{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"redirection_loop"}
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 GetReportStatForCrawl( $crawlId: ObjectID! $reportTemplateCode: String! $after: String ) { getReportStat( input: {crawlId: $crawlId, reportTemplateCode: $reportTemplateCode} ) { crawlUrls(after: $after, reportType: Basic) { nodes { url redirectChain redirectedToUrl foundAtUrl deeprank level redirectCount isRedirectLoop metaRedirect redirectedToStatusCode foundInGoogleAnalytics foundInGoogleSearchConsole foundInBacklinks foundInList foundInLogSummary foundInWebCrawl foundInSitemap } totalCount pageInfo { endCursor hasNextPage } } } }","variables":{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"redirection_loop"}}' https://api.lumar.io/graphql