mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-23 11:44:06 -08:00
⚡ 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:
parent
92f98d4bcc
commit
63bc4097e0
|
@ -463,6 +463,9 @@ export function getWebhookBaseUrl() {
|
|||
// @ts-ignore
|
||||
urlBaseWebhook = process.env.WEBHOOK_TUNNEL_URL || process.env.WEBHOOK_URL;
|
||||
}
|
||||
if (!urlBaseWebhook.endsWith('/')) {
|
||||
urlBaseWebhook += '/';
|
||||
}
|
||||
|
||||
return urlBaseWebhook;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue