mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 20:54:00 -06:00
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
Block a user