Commit e5b64d2 1 parent f8fc160 commit e5b64d2 Copy full SHA for e5b64d2
File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ import { getSections } from 'sections-helper';
26
26
import { checkFormHandler } from 'lib/protect-form' ;
27
27
import notices from 'notices' ;
28
28
import authController from 'auth/controller' ;
29
+ import { makeLayout , render as clientRender } from 'controller' ;
29
30
30
31
const debug = debugFactory ( 'calypso' ) ;
31
32
@@ -102,9 +103,10 @@ const loggedOutMiddleware = currentUser => {
102
103
}
103
104
} ) ;
104
105
} else if ( config . isEnabled ( 'devdocs/redirect-loggedout-homepage' ) ) {
105
- page ( '/' , ( ) => {
106
- page . redirect ( '/devdocs/start' ) ;
107
- } ) ;
106
+ page ( '/' , '/devdocs/start' ) ;
107
+ } else {
108
+ // render an empty layout with masterbar links for logged-out home page
109
+ page ( '/' , makeLayout , clientRender ) ;
108
110
}
109
111
110
112
const validSections = getSections ( ) . reduce ( ( acc , section ) => {
You can’t perform that action at this time.
0 commit comments