mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Fix same domains links on subfolder installs
isInternal link handling logic needs to test if the link is inside the same subfolder
This commit is contained in:
@@ -271,7 +271,7 @@ const DiscourseURL = Ember.Object.createWithMixins({
|
||||
|
||||
// This has been extracted so it can be tested.
|
||||
origin: function() {
|
||||
return window.location.origin;
|
||||
return Discourse.BaseUrl + Discourse.BaseUri;
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user