From 0f46f04dee1c429af785ab7df7cbaf2f9f42632a Mon Sep 17 00:00:00 2001 From: John McLear Date: Sun, 21 Jun 2015 13:02:57 +0100 Subject: [PATCH] handle urls with additional content --- src/node/hooks/express/specialpages.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/node/hooks/express/specialpages.js b/src/node/hooks/express/specialpages.js index f5d244436..6160fa026 100644 --- a/src/node/hooks/express/specialpages.js +++ b/src/node/hooks/express/specialpages.js @@ -105,7 +105,9 @@ function sendPadHeaderFiles(res, callback){ var client_hooks = plugin.parts[0].client_hooks; if(client_hooks){ Object.keys(client_hooks).forEach(function(k){ - pluginPaths.push(client_hooks[k]); + var path = client_hooks[k]; + path = path.split(":")[0]; + pluginPaths.push(path); }); } });