yohei0125 3 лет назад
Родитель
Сommit
ff5f4b4612
1 измененных файлов с 1 добавлено и 7 удалено
  1. 1 7
      packages/app/src/server/routes/page.js

+ 1 - 7
packages/app/src/server/routes/page.js

@@ -607,13 +607,7 @@ module.exports = function(crowi, app) {
    * redirector
    */
   async function redirector(req, res, next, path) {
-    const { redirectFrom, originalEmptyPageId } = req.query;
-
-    // originalEmptyPageId exists when user accesses an empty page by pageId
-    if (originalEmptyPageId != null) {
-      req.pageId = originalEmptyPageId;
-      return _notFound(req, res);
-    }
+    const { redirectFrom } = req.query;
 
     const includeEmpty = true;
     const builder = new PageQueryBuilder(Page.find({ path }), includeEmpty);