From da4e27ca7dd8e0706566c0165db8211217a7bde6 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 20 Dec 2016 11:53:43 -0500 Subject: [PATCH] FIX: Allow resolution of `javascripts` prefixed raw templates --- app/assets/javascripts/discourse/lib/raw-templates.js.es6 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/raw-templates.js.es6 b/app/assets/javascripts/discourse/lib/raw-templates.js.es6 index 5df3190b5a3..d26bf7ce2c9 100644 --- a/app/assets/javascripts/discourse/lib/raw-templates.js.es6 +++ b/app/assets/javascripts/discourse/lib/raw-templates.js.es6 @@ -6,5 +6,6 @@ export function findRawTemplate(name) { Discourse.RAW_TEMPLATES[name]; } - return Discourse.RAW_TEMPLATES[name]; + return Discourse.RAW_TEMPLATES[name] || + Discourse.RAW_TEMPLATES[`javascripts/${name}`]; }