mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Store base URI in Discourse.BaseUri and use it in all places where rootURL was previously used
This commit is contained in:
parent
bb18b6cb9b
commit
a875b1c44a
5 changed files with 9 additions and 25 deletions
|
@ -22,10 +22,8 @@ Discourse = Ember.Application.createWithMixins({
|
|||
// The highest seen post number by topic
|
||||
highestSeenByTopic: {},
|
||||
|
||||
rootURL: '/',
|
||||
|
||||
getURL: function(url) {
|
||||
var u = this.get('rootURL');
|
||||
var u = (Discourse.BaseUri === undefined ? "/" : Discourse.BaseUri);
|
||||
if (u[u.length-1] === '/') {
|
||||
u = u.substring(0, u.length-1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue