Skip to content

Improve latest-stable doc redirection - #1241

Merged
dpiparo merged 1 commit into
mainfrom
latest-stable-404
Sep 8, 2026
Merged

Improve latest-stable doc redirection#1241
dpiparo merged 1 commit into
mainfrom
latest-stable-404

Conversation

@silverweed

Copy link
Copy Markdown
Contributor

The current mechanism fails if the symlink latest-stable is not set up properly on the server. This is error-prone, as it needs to be updated at every stable release, so we now instead rely on the 404.html to redirect us to the latest stable release.

This way latest-stable may not exist at all and the redirection will still work properly.

Note that this changes the location of the LATEST_RELEASE constant (that still needs to be updated at every release) from selectversion.js to versions.js. selectversion.js now needs versions.js to be included in order to work (this change is done in the root repository).

The current mechanism fails if the symlink `latest-stable` is not
set up properly on the server. This is error-prone, as it needs to be
updated at every stable release, so we now instead rely on the 404.html
to redirect us to the latest stable release.

This way `latest-stable` may not exist at all and the redirection will
still work properly.

Note that this changes the location of the LATEST_RELEASE constant
(that still needs to be updated at every release) from selectversion.js
to versions.js. selectversion.js now needs versions.js to be included
in order to work (this change is done in the root repository).
@silverweed
silverweed requested review from couet and dpiparo September 8, 2026 09:53
@silverweed silverweed self-assigned this Sep 8, 2026
@dpiparo
dpiparo merged commit 6cce6a7 into main Sep 8, 2026
1 check passed
@dpiparo
dpiparo deleted the latest-stable-404 branch September 8, 2026 14:13
silverweed added a commit to root-project/root that referenced this pull request Sep 8, 2026
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.

2 participants