From 599027f2d31f28c69bdb43302c7eb6dcbce65d35 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Wed, 19 Feb 2014 19:28:21 -0500 Subject: [PATCH] send full url to widgets as well so they can parse based on path --- public/src/ajaxify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index 94eaba4fb6..4790649b7b 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -120,7 +120,7 @@ var ajaxify = {}; async.each(widgetLocations, function(location, next) { var area = $('#content [widget-area="' + location + '"]'); - socket.emit('widgets.render', {template: tpl_url + '.tpl', location: location}, function(err, renderedWidgets) { + socket.emit('widgets.render', {template: tpl_url + '.tpl', url: url, location: location}, function(err, renderedWidgets) { area.html(templates.prepare(area.html()).parse({widgets: renderedWidgets})).removeClass('hidden'); next(err); });