File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -93,12 +93,6 @@ window.$docsify = {
9393 this . classList . toggle ( "open" )
9494 } )
9595 document . querySelector ( 'nav' ) . appendChild ( menuIcon )
96- } ) ;
97-
98- hook . ready ( function ( ) {
99- // Redirect properly to translated language, otherwise we stay on "#/" hash
100- // and it cause some translations issues
101- if ( location . hash == "#/" ) location . hash = `docs/users/${ locale } /`
10296
10397 // Back button url correct
10498 let backBtn = document . querySelector ( "#back" )
@@ -110,6 +104,12 @@ window.$docsify = {
110104 const nav = document . querySelector ( 'nav > ul' )
111105 nav . insertBefore ( li , nav . children [ 0 ] )
112106 }
107+ } ) ;
108+
109+ hook . ready ( function ( ) {
110+ // Redirect properly to home page, otherwise we stay on "#/" hash
111+ // and it cause some translations issues
112+ if ( location . hash == "#/" ) location . hash = `/docs/users/${ locale } /`
113113
114114 // backdrop
115115 let backdrop = document . createElement ( 'div' )
You can’t perform that action at this time.
0 commit comments