mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Rewrite origin so it matches original behavior
As suggested by @nlalonde
This commit is contained in:
parent
983d3606df
commit
4e39f9662d
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue