Category: Vercel and hosting

Vercel: redirect removes campaign and form parameters

Read this guide in Polish

Upon entering the URL, it loses some of the query string and analyst loses the source of the entry.

How to identify the source of the problem

Check the redirect rules and the destination URL in Location for the query with the test parameter.

Compare SHA commit, the status of deployment and HTTP response under the final domain, not the very status of READY.

Repair steps

Improve the rule or redirect code so that it consciously keeps the required parameters.

How to Test Solution

The new URL retains the allowed parameters, and a dangerous open redirect does not arise.

Security and restrictions

Keep the previous active deployment until the new one is confirmed under your own domain. Avoid writing secrets in logs.