From 62644e081b3918bd88d25678905bdc522e874e6a Mon Sep 17 00:00:00 2001 From: aperolschpritz Date: Fri, 25 Sep 2026 09:30:01 +0000 Subject: [PATCH] fix: omit colon in webhook url when no port is set --- src/app/project/app/[appId]/overview/webhook-deployment.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/project/app/[appId]/overview/webhook-deployment.tsx b/src/app/project/app/[appId]/overview/webhook-deployment.tsx index 4ef83350..eac4d7dc 100644 --- a/src/app/project/app/[appId]/overview/webhook-deployment.tsx +++ b/src/app/project/app/[appId]/overview/webhook-deployment.tsx @@ -22,7 +22,7 @@ export default function WebhookDeploymentInfo({ const setWebhookId = (webhookId?: string | null | void) => { if (webhookId) { const hostname = window.location.hostname; - const port = [80, 443].includes(Number(window.location.port)) ? '' : `:${window.location.port}`; + const port = window.location.port && ![80, 443].includes(Number(window.location.port)) ? `:${window.location.port}` : ''; const protocol = window.location.protocol; setWebhookUrl(`${protocol}//${hostname}${port}/api/v1/webhook/deploy?id=${webhookId}`); }