NotionNext icon indicating copy to clipboard operation
NotionNext copied to clipboard

【多语言】在未开启多语言的情况下,也会生成 /en/ 页面。

Open BKDragon opened this issue 1 year ago • 3 comments

描述bug 在所有的配置位置都只设置了 zh-CN ,且 REDIRECT_LANG 设置为 false 的情况下。依然会形成文章的英文 URL,如:https://abc.com/en/article/xxxxx 访问之后,实际是文章的中文版本。 但这个 URL 会被 Google 识别为重复页面,影响 SEO。

期望的正常结果 在没开启多语言的情况下,没有 /en/ 对应 URL

复现步骤

环境

  • 【必填】NotionNext版本 [4.6.1]
  • 【必填】主题 [gitbook]
  • 【必填】部署方案 [vercel]

补充说明 【可选】与问题相关的其它说明

BKDragon avatar Jul 19 '24 07:07 BKDragon

其实单一语言设置下应该取消那个 /en 的尾巴,关键是这个多语言切换并没有实际效果

leaflyingl avatar Aug 10 '24 20:08 leaflyingl

最新版已经处理

tangly1024 avatar Sep 04 '24 09:09 tangly1024

4.7.4这个问题好像又出现了。。

leaflyingl avatar Oct 05 '24 08:10 leaflyingl