diff --git a/src/sdk/Formio.ts b/src/sdk/Formio.ts index f3fc3f9f..5dfb29e4 100644 --- a/src/sdk/Formio.ts +++ b/src/sdk/Formio.ts @@ -1930,9 +1930,10 @@ export class Formio { * @param {string} url - The URL of the Base API url. */ static setBaseUrl(url: string) { - Formio.baseUrl = url; + const normalizedUrl = url.replace(/\/+$/, ''); + Formio.baseUrl = normalizedUrl; if (!Formio.projectUrlSet) { - Formio.projectUrl = url; + Formio.projectUrl = normalizedUrl; } }