Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: 托管到git静态文件服务后,只要url里加了?locale=zh-CN页面就无限重定向直到失败 #1963

Open
Horve opened this issue Nov 14, 2023 · 2 comments
Labels
enhancement New feature or request PR Welcome

Comments

@Horve
Copy link

Horve commented Nov 14, 2023

Version

2.2.14

OS Version

macOS 11.4 (20F71)

Node.js Version

v18.13.0

Browser Version

chrome 119.0.6045.123(正式版本) (x86_64)

Link to minimal reproduction

none

Steps to reproduce

rt
本地开发及本地服务正常,托管到内部 git 静态文件服务后,codeDemo 的iframe加载的url里多了 locale=zh-CN 参数,导致demo无法正常加载一致重定向,去掉参数后可以正常访问。
想咨询下如何解决,以及不需要多语言的话如何关闭多语言。

What is expected?

想咨询下如何解决,以及不需要多语言的话如何关闭多语言。

What is actually happening?

codeDemo 的页面无法加载

Any additional comments? (optional)

No response

@PeachScript
Copy link
Member

query 是正常的 url,应该看下站点托管服务为什么会发生重定向?

默认配置就是单语言,但默认语言的确可以不传 locale query,能绕过你遇到的问题,有兴趣可以来个 PR

@PeachScript PeachScript added enhancement New feature or request PR Welcome and removed unconfirmed labels Nov 14, 2023
Copy link

Hello @Horve. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please be sure to fill in the default template in the Pull Request, provide changelog/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!

你好 @Horve,我们完全同意你的提议/反馈,欢迎直接在此仓库创建一个 Pull Request 来解决这个问题。请务必填写 Pull Request 内的预设模板,提供改动所需相应的 changelog、测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PR Welcome
Projects
None yet
Development

No branches or pull requests

2 participants