Skip to content

fix: redirect non-English latest docs to English - #1534

Merged
GitToTheHub merged 1 commit into
apache:masterfrom
GitToTheHub:fix/latest-docs-language-redirect
Oct 11, 2026
Merged

GitToTheHub merged 1 commit into
apache:masterfrom
GitToTheHub:fix/latest-docs-language-redirect

Conversation

@GitToTheHub

Copy link
Copy Markdown
Contributor

Platforms affected

Cordova documentation website (Apache redirects).

Motivation and Context

The latest-version link on archived German documentation points to /docs/de/latest/, which returns a 404 because current documentation is only available in English.

Fixes #1533.

Description

Add a permanent redirect from non-English /docs/<language>/latest URLs to /docs/en/latest, preserving the optional page path. Exclude English URLs to prevent redirect loops. The rule supports regional language codes such as zh-tw and leaves archived translations accessible.

Testing

  • Passed 10 direct rule-matching checks covering German and regional-language URLs, roots with and without trailing slashes, nested paths, English loop prevention, archived/versioned URLs, and unrelated version names.
  • git diff --check passed.
  • npm test was attempted but failed due to the locally installed ESLint 8 package not exporting eslint/config.
  • Full Jekyll build and Apache integration testing were not completed: required Ruby gems are missing and the sandbox blocks local server sockets.

Checklist

  • I've run the tests to see all new and existing tests pass
  • I added automated test coverage as appropriate for this change (direct checks described above; no persistent test suite added)
  • Commit is prefixed with (platform) if this change only applies to one platform (not platform-specific)
  • If this Pull Request resolves an issue, I linked to the issue in the text above and used the correct keyword
  • I've updated the documentation if necessary (inline redirect examples)

@GitToTheHub
GitToTheHub merged commit ced96ba into apache:master Oct 11, 2026
2 checks passed
@GitToTheHub
GitToTheHub deleted the fix/latest-docs-language-redirect branch October 11, 2026 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

German: Old documentation can still be found on Google and clicking on latest version does not work

2 participants