mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00: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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user