-
Notifications
You must be signed in to change notification settings - Fork 677
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
[i18n] Non-English pages' links redirect to English content #3148
Comments
@vasfvitor Hi, I’m currently investigating this issue and have identified the root cause (MDX links are not dynamically prefixed with the locale). I plan to implement a Markdown plugin to resolve this, which will also make it easier to support other languages in the future. |
@Fanceir I'm unsure this is needed, at first I thought it was due simply because the links are prefixed, isn't it? Like we can statically prefix with the correct locale at the page where the link is located. Keep in mind that some links does not have i18n planned, for example the blog and api/references pages. What was you planning for this plugin to do? Edit: found out that it's best to prefix /blog and /api pages to keep the locale on the url |
Hi @vasfvitor , thanks for your reply. You make a good point that we could handle the localized link at the page where the link is located., rather than implementing a more complex Markdown plugin solution. That could be a simpler and more direct approach in many cases. The reason I was considering a Markdown plugin is that it would provide a way to handle localization of links. |
@Fanceir if you don't mind I think I'm fix it by myself, or do you want to do it? |
@vasfvitor I don't mind at all, feel free to go ahead and fix it. 😊 |
@caipeter888 it should now be fixed, thanks for reporting |
Description:
On non-English pages (for example, the Chinese version), many hyperlinks are not preserving the locale in their URLs, which results in users being redirected to the English version of the site. This behavior can be confusing for users who expect a fully localized experience.
Steps to Reproduce:
https://tauri.app/zh-cn/start/prerequisites/#rust
Expected Behavior:
The "Create New Project" button (and other similar links) on non-English pages should link to the corresponding localized pages. For instance, on the Chinese page, the URL should be https://tauri.app/zh-cn/start/create-project/.
Actual Behavior:
The links currently redirect to the English version of the pages, causing inconsistency in user experience.
The text was updated successfully, but these errors were encountered: