diff --git a/node/server.js b/node/server.js index a6a57497..f254c2ca 100644 --- a/node/server.js +++ b/node/server.js @@ -98,7 +98,7 @@ async.waterfall([ //the pad id was sanitized, so we redirect to the sanitized version if(sanitizedPadId != padId) { - var real_path = req.path.replace(/^\/p\/[^\/]+/, '/p/' + sanitizedPadId); + var real_path = req.path.replace(/^\/p\/[^\/]+/, './' + sanitizedPadId); res.header('Location', real_path); res.send('You should be redirected to ' + real_path + '', 302); }