-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Updated image links at Kubernetes basic tutorial #51663
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
Conversation
Related to the issue : [zh] Wrong links at Kubernetes basic tutorial kubernetes#51643 The path in the images earlier pointed to path="/zh-cn/docs/tutorials/kubernetes-basics/create-cluster/cluster-intro/" but /zh-cn was being added dynamically again so the result was path="/zh-cn/zh-cn/docs/tutorials/kubernetes-basics/create-cluster/cluster-intro/" which is an invalid link. Fix : removed /zh-cn from the path of all the images.
The committers listed above are authorized under a signed CLA. |
Welcome @Nishant891! |
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: windsonsea, ydFu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
LGTM label has been added. Git tree hash: 8928fb58bbd2698a0c860d199298d069821393e7
|
Description
Fixed incorrect double language prefix in Chinese Kubernetes tutorial navigation links. The tutorial module paths were manually including
/zh-cn/
prefix, but Hugo was automatically adding the language prefix again based on the current page context, resulting in invalid URLs with/zh-cn/zh-cn/
double prefix.Changes made:
/zh-cn/
prefix from all tutorial module paths in the Chinese localizationIssue
Closes #51643
Root cause: Hugo automatically prepends language-specific URL prefixes (
/zh-cn/
) when serving localized content. The manual inclusion of/zh-cn/
in the shortcode paths caused double prefixing, creating invalid URLs like:https://kubernetes.io/zh-cn/zh-cn/docs/tutorials/kubernetes-basics/...
https://kubernetes.io/zh-cn/docs/tutorials/kubernetes-basics/...