You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "GitToTheHub (via GitHub)" <gi...@apache.org> on 2026/10/10 18:35:27 UTC

[PR] fix: redirect non-English latest docs to English [cordova-docs]

GitToTheHub opened a new pull request, #1534:
URL: https://github.com/apache/cordova-docs/pull/1534

   ### 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)
   - [x] Commit is prefixed with `(platform)` if this change only applies to one platform (not platform-specific)
   - [x] If this Pull Request resolves an issue, I linked to the issue in the text above and used the correct keyword
   - [x] I've updated the documentation if necessary (inline redirect examples)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [PR] fix: redirect non-English latest docs to English [cordova-docs]

Posted by "GitToTheHub (via GitHub)" <gi...@apache.org>.
GitToTheHub merged PR #1534:
URL: https://github.com/apache/cordova-docs/pull/1534


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org