Commit Graph
2 Commits
Author SHA1 Message Date
juanisidoro c730442e5c fix: apply same null referrer fix to link tracking route
The same bug exists in the link route (q/[slug]) where
request.headers.get("referer") returns null for requests without
a Referer header, causing silent Zod validation failure.
2026-02-19 13:21:46 +01:00
juanisidoro 3d8d5a7293 fix: handle null referrer in pixel tracking route
request.headers.get("referer") returns null when the header is absent
(e.g. email clients). The Zod schema uses .optional() which accepts
undefined but rejects null, causing silent validation failure and
pixel events not being recorded.

Fixes #4028
2026-02-19 13:21:46 +01:00