From 8a63b46adc7a820b93b710d7fab45a6781e4e076 Mon Sep 17 00:00:00 2001 From: Wojciech Kocjan Date: Tue, 16 Apr 2013 11:46:16 +0200 Subject: [PATCH] Fix for notifications not being shown when running with prefix --- app/assets/javascripts/discourse/views/header_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/views/header_view.js b/app/assets/javascripts/discourse/views/header_view.js index 80fd2620c1d..2a3745a19a5 100644 --- a/app/assets/javascripts/discourse/views/header_view.js +++ b/app/assets/javascripts/discourse/views/header_view.js @@ -54,7 +54,7 @@ Discourse.HeaderView = Discourse.View.extend({ showNotifications: function() { var headerView = this; - Discourse.ajax('/notifications').then(function(result) { + Discourse.ajax(Discourse.getURL('/notifications')).then(function(result) { headerView.set('notifications', result.map(function(n) { return Discourse.Notification.create(n); }));