Merge pull request #714 from wojciechka/master
Fix for notifications not being shown when running with prefix
This commit is contained in:
commit
9a5706241b
|
@ -54,7 +54,7 @@ Discourse.HeaderView = Discourse.View.extend({
|
||||||
showNotifications: function() {
|
showNotifications: function() {
|
||||||
|
|
||||||
var headerView = this;
|
var headerView = this;
|
||||||
Discourse.ajax('/notifications').then(function(result) {
|
Discourse.ajax(Discourse.getURL('/notifications')).then(function(result) {
|
||||||
headerView.set('notifications', result.map(function(n) {
|
headerView.set('notifications', result.map(function(n) {
|
||||||
return Discourse.Notification.create(n);
|
return Discourse.Notification.create(n);
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in New Issue