0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

🐛 Fixed sometimes invalid (due to trailing slash) API URL shown on integration screen

This commit is contained in:
Kevin Ansfield 2019-03-19 11:47:29 +00:00
parent 6ee01b7bad
commit e4ee09cfba

View file

@ -21,8 +21,9 @@ export default Controller.extend({
apiUrl: computed(function () {
let origin = window.location.origin;
let subdir = this.ghostPaths.subdir;
let url = this.ghostPaths.url.join(origin, subdir);
return this.ghostPaths.url.join(origin, subdir);
return url.replace(/\/$/, '');
}),
allWebhooks: computed(function () {