ChrisWren / grunt-link-checker

Run node-simple-crawler to discover broken links on your website
MIT License
33 stars 9 forks source link

getting 404 for css files #5

Closed cupojoe closed 9 years ago

cupojoe commented 10 years ago

Hi I'm getting a very strange behavior with the link checker. It tries to get the CSS from the link tag and fails with 404 by trying to make the URL relative.

Resource not found linked from http://myIP:myPORT/products-services/healthcare-credit-card.html to http://myIP:myPORT/products-services/%27/styles/main.css Status code: 404

I removed the IP since this client work. Have you seen anything like this? The CSS resolves fine in the page and all styles work. I was just wondering why this error would appear. It doesn't appear on all pages either, just 3 of them. Thanks Joe

ChrisWren commented 10 years ago

Are you using a base tag on your page? Haven't seen this issue myself, but I am guessing the link-checker isn't taking meta tags into account.

ChrisWren commented 9 years ago

Closing for inactivity, reopen if still an issue and my suggestion doesn't help