Authored by 陈峰

301跳转

... ... @@ -57,7 +57,7 @@ let indexRedirect = (req, res) => {
if (param) {
param = '?' + param;
}
res.redirect(`/${req.yoho.channel}-brands/${param}`);
res.redirect(301, `/${req.yoho.channel}-brands/${param}`);
};
let brandList = (req, res, next) => {
... ...
... ... @@ -102,7 +102,7 @@ const editorRedirect = (req, res, next) => {
if (param) {
param = '?' + param;
}
redirectUrl += `-${id}/${param}/`;
redirectUrl += `-${id}/${param}`;
res.redirect(redirectUrl);
} else {
return next();
... ...
... ... @@ -95,7 +95,7 @@ exports.indexRedirect = (req, res) => {
if (param) {
param = '?' + param;
}
res.redirect(`/guang/${req.yoho.channel}-plusstar/${param}`);
res.redirect(301, `/guang/${req.yoho.channel}-plusstar/${param}`);
};
exports.userSkn = (req, res, next) => {
... ...
... ... @@ -86,7 +86,7 @@ const newGoodsRedirect = (req, res) => {
if (param) {
param = '?' + param;
}
res.redirect(`/product/${req.yoho.channel}-new/${param}`);
res.redirect(301, `/product/${req.yoho.channel}-new/${param}`);
};
/**
... ...
... ... @@ -106,7 +106,7 @@ let indexRedirect = (req, res) => {
if (param) {
param = '?' + param;
}
res.redirect(`/product/${req.yoho.channel}-sale/${param}`);
res.redirect(301, `/product/${req.yoho.channel}-sale/${param}`);
};
/**
... ...