REFACTOR: Remove `Discourse.BaseUrl` global

REFACTOR: Remove Discourse.BaseUrl global

diff --git a/app/assets/javascripts/discourse/app/routes/user-invited-show.js b/app/assets/javascripts/discourse/app/routes/user-invited-show.js
index 7af69e1..c6d777d 100644
--- a/app/assets/javascripts/discourse/app/routes/user-invited-show.js
+++ b/app/assets/javascripts/discourse/app/routes/user-invited-show.js
@@ -1,6 +1,7 @@
 import DiscourseRoute from "discourse/routes/discourse";
 import Invite from "discourse/models/invite";
 import showModal from "discourse/lib/show-modal";
+import { getAbsoluteURL } from "discourse-common/lib/get-url";
 
 export default DiscourseRoute.extend({
   model(params) {
@@ -59,7 +60,7 @@ export default DiscourseRoute.extend({
     },
 
     editInvite(inviteKey) {
-      const inviteLink = `${Discourse.BaseUrl}/invites/${inviteKey}`;
+      const inviteLink = getAbsoluteURL(`/invites/${inviteKey}`);
       this.currentUser.setProperties({ finished: true, inviteLink });
       const panels = [
         {

GitHub sha: 1a2156a0