Rewrite origin so it matches original behavior
As suggested by @nlalonde
This commit is contained in:
parent
983d3606df
commit
4e39f9662d
|
@ -271,7 +271,7 @@ const DiscourseURL = Ember.Object.createWithMixins({
|
|||
|
||||
// This has been extracted so it can be tested.
|
||||
origin: function() {
|
||||
return Discourse.BaseUrl + Discourse.BaseUri;
|
||||
return window.location.origin + (Discourse.BaseUri === "/" ? '' : Discourse.BaseUri);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue