Bug Tracker

Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#7659 closed bug (worksforme)

jQuery and Googlebot

Reported by: mr@… Owned by:
Priority: undecided Milestone: 1.6
Component: unfiled Version: 1.4.4
Keywords: needsreview Cc:
Blocked by: Blocking:


jQuery seems to produce crawl errors with Googlebot. Google attempts to load the URL www.domain.com/a.

See this thread for more info:


Change History (4)

comment:1 Changed 12 years ago by addyosmani

Resolution: worksforme
Status: newclosed

Thank you for submitting a ticket to the jQuery Bug tracker!

Please note that as per what was mentioned near the end of the thread on the Google Webmasters support site, this issue is not present with jQuery 1.4.4 (you're using 1.3.2 which is quite old). If you update to the latest version of jQuery you'll find that this is no longer a problem.

comment:2 Changed 12 years ago by mr@…

If read the complete thread on the Google support site you will see that this bug still exists for jQuery 1.4.2 and 1.4.4.

comment:3 Changed 12 years ago by jitter

I don't think it's likely this is going to be fixed. The problem is the google-bot which is too smart for his own good by crawling js-files and then trying to find things which look like "obvious hidden links that are gonna be dynamically added to the page later". In this vain attempt it probably stumbles over this line (so will still happen with 1.4.4) and thinks "oh there must be link url/a".

I guess you could fix this by adding a Disallow: /a to your robots.txt so that the google-bot finds the link but doesn't try to check if it leads somewhere.

Maybe it can be fixed on our side by slightly changing the string in this support test that it doesn't look like an obvious <a ..>..</a> anymore.

comment:4 Changed 12 years ago by jitter

Keywords: needsreview added

A possible try for a fix on our side could be to add a rel="nofollow" to this link in the support test. That theoretically should stop the google-bot too (credits to DaveMethvin)

Another idea could be to change the href from /a to just / or # assuming IE normalizes those too (credits to snover)

Last edited 12 years ago by jitter (previous) (diff)
Note: See TracTickets for help on using tickets.