From c88c7538b6b19036c1e1351388c6279013f0e072 Mon Sep 17 00:00:00 2001 From: Wojciech Kocjan Date: Wed, 27 Mar 2013 16:10:47 +0100 Subject: [PATCH] Fixed URL for composer /education paths --- .../javascripts/discourse/controllers/composer_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/controllers/composer_controller.js b/app/assets/javascripts/discourse/controllers/composer_controller.js index 3afd89ba6f2..1bd3951313f 100644 --- a/app/assets/javascripts/discourse/controllers/composer_controller.js +++ b/app/assets/javascripts/discourse/controllers/composer_controller.js @@ -132,7 +132,7 @@ Discourse.ComposerController = Discourse.Controller.extend({ // If visible update the text var educationKey = this.get('content.creatingTopic') ? 'new-topic' : 'new-reply'; var composerController = this; - $.get("/education/" + educationKey).then(function(result) { + $.get(Discourse.getURL("/education/") + educationKey).then(function(result) { composerController.set('educationContents', result); }); }.observes('typedReply', 'content.creatingTopic', 'Discourse.currentUser.reply_count'),