guoziyun 1 yıl önce
ebeveyn
işleme
cfdd20b435
1 değiştirilmiş dosya ile 19 ekleme ve 0 silme
  1. 19 0
      routes/index.js

+ 19 - 0
routes/index.js

@@ -584,6 +584,13 @@ router.get('/:lang/albums', function (req, res, next) {
 
 });
 
+// 专辑详情页路由, 重定向到新的页面
+router.get('/:lang/album/:id', function (req, res, next) {
+  const uri = req.originalUrl;
+  let newUri = uri.replace('album', 'coloring-page-album');
+  res.redirect(newUri);
+});
+
 // 专辑详情页路由
 router.get('/:lang/coloring-page-album/:id', function (req, res, next) {
   (async function () {
@@ -659,6 +666,12 @@ router.get('/:lang/coloring-page-album/:id', function (req, res, next) {
 });
 
 
+// 设计师专栏路由, 重定向到新的页面
+router.get('/:lang/designers', function (req, res, next) {
+  const uri = req.originalUrl;
+  let newUri = uri.replace('designers', 'artists');
+  res.redirect(newUri);
+});
 // 设计师专栏路由
 router.get('/:lang/artists', function (req, res, next) {
   (async function () {
@@ -748,6 +761,12 @@ router.get('/:lang/artists', function (req, res, next) {
 });
 
 
+// 专辑详情页路由, 重定向到新的页面
+router.get('/:lang/designer/:id', function (req, res, next) {
+  const uri = req.originalUrl;
+  let newUri = uri.replace('designer', 'artist');
+  res.redirect(newUri);
+});
 // 设计师详情页路由
 router.get('/:lang/artist/:id', function (req, res, next) {
   (async function () {