apify-docs icon indicating copy to clipboard operation
apify-docs copied to clipboard

Checking absolute links expects URLs that are after redirect

Open metalwarrior665 opened this issue 1 year ago • 1 comments

See for example this action check https://github.com/apify/apify-docs/actions/runs/10892978578/job/30226981711?pr=1217

It cannot resolve academy/tutorials/node-js/scraping-from-sitemaps.md which is how it exists in the filesystem. The article URL is https://docs.apify.com/academy/node-js/scraping-from-sitemaps

Do I need to bite the bullet and rename the link like that or could we resolve this so all links can work like in the filesystem? @honzajavorek @TC-MO

metalwarrior665 avatar Sep 18 '24 13:09 metalwarrior665

It cannot resolve academy/tutorials/node-js/scraping-from-sitemaps.md which is how it exists in the filesystem

nope, the path uses _ instead of -:

https://github.com/apify/apify-docs/blob/master/sources/academy/tutorials/node_js/scraping_from_sitemaps.md

you either use a file path or the URL

B4nan avatar Sep 19 '24 16:09 B4nan