Fix: Pass photo request ID instead of data URL

Changed approach to pass customRequestId query parameter instead of
the full data URL. The design canvas page now fetches the photo from
the database using the request ID, avoiding URL length issues and
making the URL cleaner.
This commit is contained in:
Andymick
2026-07-18 21:05:36 +01:00
parent 8e7d242c58
commit 0d9aef5003
3 changed files with 16 additions and 4 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export default async function CustomRequestDetailPage({ params }: { params: { id
const whatsappMessage = `Hi ${request.customerName}, thanks for sending over your photo for a ${request.product.name} — we're working on it!`;
const designParams = new URLSearchParams({
customPhoto: request.imageDataUrl,
customRequestId: request.id,
});
return (