Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
šŸ› Fixed sometimes invalid (due to trailing slash) API URL shown on inā€¦
Browse files Browse the repository at this point in the history
ā€¦tegration screen
  • Loading branch information
kevinansfield committed Mar 19, 2019
1 parent 53c8e99 commit 25b5426
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/settings/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 25b5426

Please sign in to comment.