I was working on a site plagued with random 404s from across the site. One specific type of 404 I was getting was that for paths without the trailing name after the last /.
For example
http://www.example.com/somepath/to/the/referer
and the 404 would be on
http://www.example.com/somepath/to/the/
http://developer.yahoo.com/performance/rules.html mentions that this could be caused by img tags with empty source attributes.
I was going through and finding faulty URLs and SRC attributes across the site and came across the lightboxImage tag created in both lightbox.js and lightbox_lite.js
I believe this would cause 404s in IE.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1042656_lightoboxImage_empty_src_attribute.patch | 995 bytes | zyxware |
Comments
Comment #1
zyxware CreditAttribution: zyxware commentedHere is a patch for fixing this for the lightbox.js file. I see that the same issue exists in lightbox_lite.js. Since I don't use lightbox_lite somebody else will have to prepare and test the patch for that as well.