diff --git a/lib/core/mount.js b/lib/core/mount.js index 506bc63a8a..c1e08b8b1e 100644 --- a/lib/core/mount.js +++ b/lib/core/mount.js @@ -225,7 +225,7 @@ function mount(mountPath, parentApp, events) { if (mountPath) { //fix root-relative keystone urls for assets (gets around having to re-write all the keystone templates) parentApp.all(/^\/keystone($|\/.*)/, function(req, res, next) { - req.url = mountPath + req.url; + req.url = (mountPath + req.url).replace(new RegExp(/\/\//, 'g'), '/'); next(); });