Internal Redirects Found In Web Crawl
All internal redirects which were found in the web crawl
Priority: Low
Impact: Negative
What issues it may cause
It is poor practice for internally linked URLs on a website to redirect to a different URL as this can increase the load time for users and encourages search engines to crawl the redirecting URLs wasting crawl budget.
How do you fix it
Find the affected links and update the href attributes to point to the final step of the redirect chain.
What is the positive impact
- The load time experienced by users should decrease resulting in a better user experience.
Crawl budget spent on crawling the redirecting URLs may be reduced, allowing the 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
foundAtSitemap
deeprank
level
httpStatusCode
redirectedToStatusCode
redirectCount
foundInWebCrawl
foundInGoogleAnalytics
foundInGoogleSearchConsole
foundInBacklinks
foundInList
foundInLogSummary
foundInWebCrawl
foundInSitemap
}
}
}
}
}
}
{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"internal_redirects_found_in_web"}
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 foundAtSitemap deeprank level httpStatusCode redirectedToStatusCode redirectCount foundInWebCrawl foundInGoogleAnalytics foundInGoogleSearchConsole foundInBacklinks foundInList foundInLogSummary foundInWebCrawl foundInSitemap } } } } } }","variables":{"crawlId":"TjAwNUNyYXdsNDAwMA","reportTemplateCode":"internal_redirects_found_in_web"}}' https://api.lumar.io/graphql