⚡ Automatically add trailing slash to webhook urls (#2076)
* Add trailing slash to webhook url if not present Relates to community post https://community.n8n.io/t/problem-with-google-calendar-credentials/7232 We'll be adding a trailing slash as it's a requisite. * Adding slash to all cases.
This commit is contained in:
@@ -463,6 +463,9 @@ export function getWebhookBaseUrl() {
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
urlBaseWebhook = process.env.WEBHOOK_TUNNEL_URL || process.env.WEBHOOK_URL;
|
urlBaseWebhook = process.env.WEBHOOK_TUNNEL_URL || process.env.WEBHOOK_URL;
|
||||||
}
|
}
|
||||||
|
if (!urlBaseWebhook.endsWith('/')) {
|
||||||
|
urlBaseWebhook += '/';
|
||||||
|
}
|
||||||
|
|
||||||
return urlBaseWebhook;
|
return urlBaseWebhook;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user