show error page when no search request is found
This commit is contained in:
@@ -66,7 +66,8 @@ const getQueryReview = async (req, res) => {
|
||||
const searchRequest = await currentSearchRequest(req);
|
||||
|
||||
if (!searchRequest || !searchRequest.dataValues) {
|
||||
return null;
|
||||
res.render("notFound", { title: " " });
|
||||
return;
|
||||
}
|
||||
|
||||
const title = "Da li je ovo to što ste tražili ?";
|
||||
|
||||
Reference in New Issue
Block a user