Skip to content

Update redirect for latest server version 26.0#955

Merged
stktung merged 1 commit intomasterfrom
fix-redirect-latest-to-26
Feb 9, 2026
Merged

Update redirect for latest server version 26.0#955
stktung merged 1 commit intomasterfrom
fix-redirect-latest-to-26

Conversation

@stktung
Copy link
Contributor

@stktung stktung commented Feb 9, 2026

Description

Page previews

@stktung stktung requested a review from a team as a code owner February 9, 2026 08:12
@qodo-code-review
Copy link
Contributor

ⓘ You are approaching your monthly quota for Qodo. Upgrade your plan

Review Summary by Qodo

Update latest server redirect to version 26.0

✨ Enhancement

Grey Divider

Walkthroughs

Description
• Update latest server version redirect from v25.1 to v26.0
• Ensures users accessing latest documentation receive v26.0 content
Diagram
flowchart LR
  A["User requests /server/latest/*"] -- "301 redirect" --> B["v25.1/:splat (old)"]
  C["User requests /server/latest/*"] -- "301 redirect" --> D["v26.0/:splat (new)"]
Loading

Grey Divider

File Changes

1. docs/.vuepress/public/_redirects ⚙️ Configuration changes +1/-1

Update latest version redirect target

• Updated redirect rule for /server/latest/* to point to v26.0 instead of v25.1
• Single line change in the 'latest to latest' section of redirect configuration

docs/.vuepress/public/_redirects


Grey Divider

Qodo Logo

@github-actions
Copy link

github-actions bot commented Feb 9, 2026

Docs build

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 9, 2026

Deploying documentation with  Cloudflare Pages  Cloudflare Pages

Latest commit: 630bfd7
Status: ✅  Deploy successful!
Preview URL: https://b280cc5f.documentation-21k.pages.dev
Branch Preview URL: https://fix-redirect-latest-to-26.documentation-21k.pages.dev

View logs

@github-actions
Copy link

github-actions bot commented Feb 9, 2026

Docs build

@qodo-code-review
Copy link
Contributor

ⓘ You are approaching your monthly quota for Qodo. Upgrade your plan

Code Review by Qodo

🐞 Bugs (1) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider


Remediation recommended

1. Homepage links to v25.0 🐞 Bug ✓ Correctness
Description
• The PR moves /server/latest/* to /server/v26.0/*, but the docs homepage still hard-codes
  several key entry links to /server/v25.0/....
• v25.0 is marked deprecated/hidden in the import configuration, so promoting it from the homepage
  conflicts with the versioning intent and will keep routing users to older docs.
• This creates a recurring release-maintenance hazard: updating “latest” in redirects without
  updating homepage entry points leaves the site inconsistent.
Code

docs/.vuepress/public/_redirects[254]

+/server/latest/*                            /server/v26.0/:splat                     301
Evidence
The redirect change makes /server/latest/* resolve to v26.0, but the homepage still sends users to
v25.0. Additionally, the import configuration explicitly marks v25.0 as deprecated/hidden while
listing v26.0 first (which the versioning logic treats as latest).

docs/.vuepress/public/_redirects[241-255]
docs/README.md[106-129]
import/repos.json[10-31]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The docs homepage (`docs/README.md`) hard-codes links to `/server/v25.0/...` (HTTP API, Connectors, Admin UI). After this PR, `/server/latest/*` redirects to `/server/v26.0/*`, and `v25.0` is marked deprecated/hidden in `import/repos.json`, so the homepage will continue sending users to an older/deprecated version.

## Issue Context
- Redirects: `/server/latest/*` now points to `/server/v26.0/:splat`.
- Import/version config: `v25.0` is `deprecated: true` and `hide: true`.
- The homepage is a high-traffic entrypoint; keeping it on v25.0 undermines the release bump.

## Fix Focus Areas
- docs/README.md[106-129]
- import/repos.json[10-31]
- docs/.vuepress/public/_redirects[253-255]

## Suggested change
- Replace `/server/v25.0/...` links in `docs/README.md` with `/server/v26.0/...` equivalents.
- (Optional, more robust) Add a client-side redirect route for deep paths:
 - In `docs/.vuepress/client.ts`, add something like:
   - `addDynamicRoute('/server/latest/:pathMatch(.*)*', to => to.path.replace(/^\/server\/latest/, `/${__VERSIONS__.latest}`));`
 - Then you could safely use `/server/latest/...` links throughout the site without relying on the hosting redirects during SPA navigation.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


Grey Divider

ⓘ The new review experience is currently in Beta. Learn more

Grey Divider

Qodo Logo

@stktung stktung merged commit ae7efc9 into master Feb 9, 2026
4 checks passed
@stktung stktung deleted the fix-redirect-latest-to-26 branch February 9, 2026 08:33
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

Comments