mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #422] [MERGED] fix: preserve repeated route and query params in rewrites and redirects #560
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#560
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/422
Author: @JaredStowell
Created: 3/10/2026
Status: ✅ Merged
Merged: 3/10/2026
Merged by: @james-elicx
Base:
main← Head:jstowell/fix-config-matchers-repeated-params📝 Commits (3)
b79ed65Update redirect matcher replacements2cbbfc3Fix rewrite param substitution8d7b306fix nits📊 Changes
7 files changed (+248 additions, -23 deletions)
View changed files
📝
packages/vinext/src/config/config-matchers.ts(+49 -22)📝
tests/__snapshots__/entry-templates.test.ts.snap(+1 -1)📝
tests/app-router.test.ts(+32 -0)📝
tests/fixtures/app-basic/next.config.ts(+11 -0)📝
tests/fixtures/pages-basic/next.config.mjs(+9 -0)📝
tests/pages-router.test.ts(+26 -0)📝
tests/shims.test.ts(+120 -0)📄 Description
Fix two
next.configmatcher bugs inconfig-matchers.ts:/post/:id -> /api/:id/:idproduced/api/123/:id?a=1&a=2&b=3proxied upstream as?a=1&b=3Changes
Tests
Added unit regressions in
tests/shims.test.tsfor:proxyExternalRequest()Added integration coverage for:
Verification
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.