An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: html/apiUrls cannot end with /
Andras Bacsai0b709c93a8a2
diff --git a/src/routes/sources/[id]/_Github.svelte b/src/routes/sources/[id]/_Github.svelteindex af776cfea7..6b8aa0c89c 100644--- a/src/routes/sources/[id]/_Github.svelte+++ b/src/routes/sources/[id]/_Github.svelte@@ -12,8 +12,8 @@try {await post(`/sources/${id}.json`, {name: source.name,- htmlUrl: source.htmlUrl,- apiUrl: source.apiUrl+ htmlUrl: source.htmlUrl.replace(/\/$/, ''),+ apiUrl: source.apiUrl.replace(/\/$/, '')});toast.push('Settings saved.');} catch ({ error }) {@@ -50,8 +50,8 @@await post(`/sources/${id}/github.json`, {type: 'github',name: source.name,- htmlUrl: source.htmlUrl,- apiUrl: source.apiUrl+ htmlUrl: source.htmlUrl.replace(/\/$/, ''),+ apiUrl: source.apiUrl.replace(/\/$/, '')});} catch ({ error }) {return errorNotification(error);diff --git a/src/routes/sources/[id]/_Gitlab.svelte b/src/routes/sources/[id]/_Gitlab.svelteindex 89e43cfe35..b528b18509 100644--- a/src/routes/sources/[id]/_Gitlab.svelte+++ b/src/routes/sources/[id]/_Gitlab.svelte@@ -38,8 +38,8 @@await post(`/sources/${id}/gitlab.json`, {type: 'gitlab',name: source.name,- htmlUrl: source.htmlUrl,- apiUrl: source.apiUrl,+ htmlUrl: source.htmlUrl.replace(/\/$/, ''),+ apiUrl: source.apiUrl.replace(/\/$/, ''),oauthId: source.gitlabApp.oauthId,appId: source.gitlabApp.appId,appSecret: source.gitlabApp.appSecret,@@ -56,8 +56,8 @@try {await post(`/sources/${id}.json`, {name: source.name,- htmlUrl: source.htmlUrl,- apiUrl: source.apiUrl+ htmlUrl: source.htmlUrl.replace(/\/$/, ''),+ apiUrl: source.apiUrl.replace(/\/$/, '')});} catch ({ error }) {return errorNotification(error);