stevenvachon / broken-link-checker

Find broken links, missing images, etc within your HTML.
MIT License
1.97k stars 305 forks source link

Using dns-prefetch is broken #130

Open JBerendes opened 6 years ago

JBerendes commented 6 years ago

<link rel="dns-prefetch" href="//fonts.googleapis.com">

Takes the current url and tacks the route on to the dns-prefetch url

example: http://randomexamplething.com/my/route

blc will attempt to check the following and get a 404: ├─BROKEN─ https://fonts.googleapis.com/my/route/ (HTTP_404)

XhmikosR commented 6 years ago

Yup, I hit this too. Not sure if it happens with the other hints' tags too, like preconnect.

zwadl commented 6 years ago

Stumbled upon this too! Seems to happen with alle urls that have no protocoll in front.

//www.whateverdomain.com then will be checked as http://www.whateverdomain.com/my/route/