...
|
...
|
@@ -104,7 +104,13 @@ const sortParams = (req, res, next) => { |
|
|
if (_.every(matched, match => match)) {
|
|
|
return next();
|
|
|
} else {
|
|
|
return res.redirect(helpers.urlFormat('/', sorts, 'list'));
|
|
|
let subdomain = 'list';
|
|
|
|
|
|
if (req.hostname.indexOf('search') === 0) {
|
|
|
subdomain = 'search';
|
|
|
}
|
|
|
|
|
|
return res.redirect(helpers.urlFormat('/', sorts, subdomain));
|
|
|
}
|
|
|
};
|
|
|
|
...
|
...
|
|