diff --git a/src/webserver.js b/src/webserver.js index 25ff4ab05a..6a8e99703c 100644 --- a/src/webserver.js +++ b/src/webserver.js @@ -145,15 +145,17 @@ passport.deserializeUser(function(uid, done) { // Complex Routes app.get('/topic/:topic_id/:slug?', function(req, res) { - res.send(templates['header'] + '' + templates['footer']); + var topic_url = req.params.topic_id + (req.params.slug ? '/' + req.params.slug : ''); + res.send(templates['header'] + '' + templates['footer']); }); app.get('/category/:category_id/:slug?', function(req, res) { - res.send(templates['header'] + '' + templates['footer']); + var category_url = req.params.category_id + (req.params.slug ? '/' + req.params.slug : ''); + res.send(templates['header'] + '' + templates['footer']); }); app.get('/confirm/:code', function(req, res) { - res.send(templates['header'] + '' + templates['footer']); + res.send(templates['header'] + '' + templates['footer']); }); // These functions are called via ajax once the initial page is loaded to populate templates with data