Showing
5 changed files
with
5 additions
and
5 deletions
@@ -57,7 +57,7 @@ let indexRedirect = (req, res) => { | @@ -57,7 +57,7 @@ let indexRedirect = (req, res) => { | ||
57 | if (param) { | 57 | if (param) { |
58 | param = '?' + param; | 58 | param = '?' + param; |
59 | } | 59 | } |
60 | - res.redirect(`/${req.yoho.channel}-brands/${param}`); | 60 | + res.redirect(301, `/${req.yoho.channel}-brands/${param}`); |
61 | }; | 61 | }; |
62 | 62 | ||
63 | let brandList = (req, res, next) => { | 63 | let brandList = (req, res, next) => { |
@@ -102,7 +102,7 @@ const editorRedirect = (req, res, next) => { | @@ -102,7 +102,7 @@ const editorRedirect = (req, res, next) => { | ||
102 | if (param) { | 102 | if (param) { |
103 | param = '?' + param; | 103 | param = '?' + param; |
104 | } | 104 | } |
105 | - redirectUrl += `-${id}/${param}/`; | 105 | + redirectUrl += `-${id}/${param}`; |
106 | res.redirect(redirectUrl); | 106 | res.redirect(redirectUrl); |
107 | } else { | 107 | } else { |
108 | return next(); | 108 | return next(); |
@@ -95,7 +95,7 @@ exports.indexRedirect = (req, res) => { | @@ -95,7 +95,7 @@ exports.indexRedirect = (req, res) => { | ||
95 | if (param) { | 95 | if (param) { |
96 | param = '?' + param; | 96 | param = '?' + param; |
97 | } | 97 | } |
98 | - res.redirect(`/guang/${req.yoho.channel}-plusstar/${param}`); | 98 | + res.redirect(301, `/guang/${req.yoho.channel}-plusstar/${param}`); |
99 | }; | 99 | }; |
100 | 100 | ||
101 | exports.userSkn = (req, res, next) => { | 101 | exports.userSkn = (req, res, next) => { |
@@ -86,7 +86,7 @@ const newGoodsRedirect = (req, res) => { | @@ -86,7 +86,7 @@ const newGoodsRedirect = (req, res) => { | ||
86 | if (param) { | 86 | if (param) { |
87 | param = '?' + param; | 87 | param = '?' + param; |
88 | } | 88 | } |
89 | - res.redirect(`/product/${req.yoho.channel}-new/${param}`); | 89 | + res.redirect(301, `/product/${req.yoho.channel}-new/${param}`); |
90 | }; | 90 | }; |
91 | 91 | ||
92 | /** | 92 | /** |
@@ -106,7 +106,7 @@ let indexRedirect = (req, res) => { | @@ -106,7 +106,7 @@ let indexRedirect = (req, res) => { | ||
106 | if (param) { | 106 | if (param) { |
107 | param = '?' + param; | 107 | param = '?' + param; |
108 | } | 108 | } |
109 | - res.redirect(`/product/${req.yoho.channel}-sale/${param}`); | 109 | + res.redirect(301, `/product/${req.yoho.channel}-sale/${param}`); |
110 | }; | 110 | }; |
111 | 111 | ||
112 | /** | 112 | /** |
-
Please register or login to post a comment