Skip to content

Commit 7fa8357

Browse files
committed
fix(doc): fix dynamic menu generation (back to my wiki + mobile icons)
1 parent 2799109 commit 7fa8357

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

javascripts/documentation.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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')

0 commit comments

Comments
 (0)