kubernetes / kubernetes/website

Language switcher redirects to homepage instead of equivalent page when switching locales

Open
#56,512 4 comments 0 reactions 2 assignees Claimed by @Kavyanjana View on GitHub
area/localization kind/bug needs-triage
Dominant language
HTML
Stars
5.4k
Forks
15.7k
Avg merge
4d 18h
Merged PRs (30d)
204

Description

This is a Bug Report

Problem:
The English kubectl cheat sheet page was renamed/moved from /docs/reference/kubectl/cheatsheet/ to /docs/reference/kubectl/quick-reference/. However, the Portuguese (and likely other localized) translation still lives at the old path: /pt-br/docs/reference/kubectl/cheatsheet/. As a result, when using the language switcher dropdown on the Portuguese page to switch to English, it cannot find a matching English page at the old slug and redirects to the homepage (https://kubernetes.io/) instead of the correct current page.

Proposed Solution:
Either (a) rename/move the localized pt-br (and other language) cheat sheet pages to match the new quick-reference slug so the switcher resolves correctly, or (b) add a redirect from the old cheatsheet slug to quick-reference for all locales, so the language switcher (and any bookmarked/indexed links) continue to work.
Page to Update:
https://kubernetes.io/pt-br/docs/reference/kubectl/cheatsheet/

Additional Information:
The current English version lives at https://kubernetes.io/docs/reference/kubectl/quick-reference/ — the old English URL at /docs/reference/kubectl/cheatsheet/ and /docs/user-guide/kubectl-cheatsheet/ also still show up in search results and community references, suggesting broader redirect/legacy-URL cleanup may be needed across locales.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.