[英]How to fix Links are not crawlable on Google Lighthouse
運行谷歌燈塔時出現錯誤。 警告是鏈接不可抓取。 這是來自谷歌燈塔的警告。
<a href="https://www.mywebsite.com/en/test.html" id="multipleStore" target="popup" onclick="window.open('https://www.mywebsite.com/en/test.html','My popup windows open','resizable,height=480,width=875'); return false;">
<p>click me</p>
</a>
為防止 Google 抓取您的鏈接,請勿使用 URL 而是使用腳本。
如果您使用類似這樣的 Google Crawler(分別為 Lighthouse)將忽略該鏈接:
<a href="javascript:void(0)" onclick="openPopup()" class="link">click me</a>
<script>
function openPopup() {
window.open('https://www.google.com/', 'Popup', 'width=400,height=875')
}
</script>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.