mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
Merge pull request #637 from wojciechka/master
Putting rootURL in JavaScript using Discourse::base_uri and erb
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user