Ver código fonte

Merge pull request #6333 from weseek/feat/render-search-page-w-leading-underscore

feat: Render /_search.page.tsx by accessing /_search
Yuki Takei 3 anos atrás
pai
commit
d961cb756e

+ 0 - 0
packages/app/src/pages/search.page.tsx → packages/app/src/pages/_search.page.tsx


+ 1 - 1
packages/app/src/server/routes/index.js

@@ -219,7 +219,7 @@ module.exports = function(crowi, app) {
   app.get('/attachment/:pageId/:fileName'       , loginRequired, attachment.api.obsoletedGetForMongoDB); // DEPRECATED: remains for backward compatibility for v3.3.x or below
   app.get('/download/:id([0-9a-z]{24})'         , loginRequired, attachment.api.download);
 
-  app.get('/_search'                            , loginRequired, injectUserUISettings, search.searchPage);
+  app.get('/_search'                            , loginRequired, injectUserUISettings, next.delegateToNext);
 
   app.get('/trash$'                   , loginRequired, injectUserUISettings, page.trashPageShowWrapper);
   app.get('/trash/$'                  , loginRequired, (req, res) => res.redirect('/trash'));