Made the user go back to the main page if query is empty.

This commit is contained in:
Bram van der Veen 2015-07-22 17:10:51 +02:00
parent d5b6fcce0d
commit ada6379a6c

View file

@ -18,6 +18,9 @@ module.exports = function (req, res) {
if (query.search == 'hoewerkt') res.redirect('http://hoewerkt.werkmanrooster.nl');
res.redirect('/' + referer + '/' + query.search);
}
else {
res.redirect('/');
}
});
}