Explorar o código

remove originalEmptyPageId

yohei0125 %!s(int64=4) %!d(string=hai) anos
pai
achega
ff5f4b4612
Modificáronse 1 ficheiros con 1 adicións e 7 borrados
  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);