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:
parent
6ee01b7bad
commit
e4ee09cfba
1 changed files with 2 additions and 1 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Reference in a new issue