Made the user go back to the main page if query is empty.
This commit is contained in:
parent
d5b6fcce0d
commit
ada6379a6c
|
@ -18,6 +18,9 @@ module.exports = function (req, res) {
|
||||||
if (query.search == 'hoewerkt') res.redirect('http://hoewerkt.werkmanrooster.nl');
|
if (query.search == 'hoewerkt') res.redirect('http://hoewerkt.werkmanrooster.nl');
|
||||||
res.redirect('/' + referer + '/' + query.search);
|
res.redirect('/' + referer + '/' + query.search);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
res.redirect('/');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue