Mobile app version of vmapp.org
Login or Join
Dunderdale272

: Dealing with Google spidering JavaScript incorrectly Google spiders JavaScript now to look for possible URLs. This is mostly a good thing, but occasionally it gets it wrong. Is there any way

@Dunderdale272

Posted in: #Google #Googlebot #WebCrawlers

Google spiders JavaScript now to look for possible URLs. This is mostly a good thing, but occasionally it gets it wrong. Is there any way to hide possible URLs in JavaScript from googlebot?

For example, I have some code like this:

var url = "/some/object/--ct_id--/".replace('--ct_id--', content_id);


Regular users end up going to the correct URLs because the --ct_id-- is replaced with an integer. Google seems to be trying to spider "/some/object/--ct_id--/" which isn't a valid link.

Does anyone know what triggers the URL detection? Should I change the variable name? Should I escape the slashes with unicode notation?

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Dunderdale272

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme