Google未收录已翻译页面(?tl=),因canonical标签指向原始网址而非自身引用

您好 :waving_hand:

我已启用内容本地化,并设置了以下管理员设置:

  • content_localization_enabled :white_check_mark:
  • content_localization_supported_locales (en, fr) :white_check_mark:
  • content_localization_crawler_param 已启用 :white_check_mark:

然而,我注意到翻译后的页面大部分没有被 Google 索引。在 Google Search Console 中,翻译后的网址显示状态为 “具有正确 canonical 标签的替代页面”,这意味着 Google 故意跳过了它们。

原因似乎是翻译后的页面具有指向原始 URL 而不是自我引用的 canonical 标签。

当前行为:

<!-- 在 ?tl=fr 页面上 -->
<link rel="canonical" href="https://site.com/t/topic/123" />

预期行为:

<!-- 在 ?tl=fr 页面上 -->
<link rel="canonical" href="https://site.com/t/topic/123?tl=fr" />

由于 Google 在 canonical 指向不同 URL 时会忽略 hreflang 标签,因此所有翻译后的页面都无法被索引。

这是已知问题还是有变通方法?

谢谢!

1 个赞

这不是@nat所说的预期情况吗?

2 个赞

是的,就是这样,感谢您的澄清!