Skip to content

Fix country-mounted legacy redirects with trailing slashes - #66

Draft
MaxGhenis wants to merge 1 commit into
masterfrom
codex/5237-policyengine-model-audit-audit-country-prefix-routing-invariants
Draft

MaxGhenis wants to merge 1 commit into
masterfrom
codex/5237-policyengine-model-audit-audit-country-prefix-routing-invariants

Conversation

@MaxGhenis

Copy link
Copy Markdown
Contributor

Agent-written for Max, by a Codex cloud task for Max Ghenis (queue file 5237-policyengine-model-audit-audit-country-prefix-routing-invariants); no person has reviewed it yet.

Redirect slash-suffixed legacy comparison URLs when they reach the country proxy and keep the destination under the original country and mount.
Add generated tests for rewrite and redirect invariants, redirect-list parity, App Router matchers, static assets, and unprefixed header pass-through.

Based on master at eb247a9c4daf5bfe85b8372a1e2d835ba28db8fe. Related draft #51 also touches the proxy matcher.

npm run test -- --maxWorkers=4 passed all 802 tests. TypeScript, targeted ESLint, local Next.js HTTP smoke checks, and git apply --check passed.
The deployed v2/Vercel request chain and the production build that fetches metadata and snapshots were outside the local checks.

No session owns this pull request yet.

@vercel

vercel Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
policyengine-model Ready Ready Preview Nov 30, 2026 5:09am UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — 56f12a4e Deployed Nov 30, 2026 by vercel[bot]
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.

1 participant