问题原文
原帖链接 · Maisen1886 · CC BY-SA 4.0
Does Googlebot call every link separately (with a new request) or does it follow all links by JavaScript (for example by click event)?
I have a vue-js website which contains all the links and of course all the navigation is handled by JavaScript.
But the meta tags and open graph meta tags are only generated and output directly from the server via PHP when a URL is requested. For example, when I go to my main page example.com/index, my PHP code outputs the meta tags specifically to that URL. If a visitor of the website now click on a link "contact" (example.com/contact), the meta tags are not adjusted and are still those for example.com/index.
But if I now directly open the URL example.com/contact in my browser, the correct meta tags and open meta tags are displayed by the PHP script.
Does Googlebot crawl each link individually as a new request/URL call or does the bot go to example.com/index and then execute the link calls via Javascript on the website (in this case the meta tags would be wrong and not updated).
已采纳解答
原帖链接 · Tony McCreath · CC BY-SA 4.0
Googlebot will look for any real links on the rendered page. i.e. an tag, and store the links URL for later crawling. So it crawls every link separately. When crawling it does not click on things.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
