Skip to content

Comments

Fix middleware to handle search parameters in URL rewrite#465

Open
fahad-frontend wants to merge 1 commit intovercel:mainfrom
fahad-frontend:fix/middleware-searchparams
Open

Fix middleware to handle search parameters in URL rewrite#465
fahad-frontend wants to merge 1 commit intovercel:mainfrom
fahad-frontend:fix/middleware-searchparams

Conversation

@fahad-frontend
Copy link

I have been building on top of the Vercel multi-tenant example in my own project and encountered an issue when attempting to access search parameters in the URL. This is a common scenario for many applications, as users often pass important data through query parameters.

The current middleware implementation rewrites the URL for the root path but does not retain any search parameters, leading to a loss of critical data. To ensure that search parameters are preserved, I propose a modification to the rewrite logic. This change is essential for maintaining the integrity of user input and improving the overall user experience in multi-tenant applications.

@vercel
Copy link

vercel bot commented Jul 2, 2025

@fahad-frontend is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

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