@@ -37,16 +37,16 @@ function Wiki (sites) {
3737 this.refresh = () => {
3838 // Main
3939 if (this.loc) {
40− if (this.byName[this.loc]) {
41− let html = `${this.templateTerm(this.loc, this.byName[this.loc])}<br />${this.templateRelated(this.loc, this.byName[this.loc])}`
42− this._entry.innerHTML = html
43− } else if (this.byCat[this.loc]) {
40+ if (this.byCat[this.loc]) {
4441 let html = ''
4542 for (const id in this.byCat[this.loc]) {
4643 const name = this.byCat[this.loc][id].name
4744 html += `${this.templateTerm(name, this.byName[name])}<br />`
4845 }
4946 this._entry.innerHTML = html
47+ } else if (this.byName[this.loc]) {
48+ let html = `${this.templateTerm(this.loc, this.byName[this.loc])}<br />${this.templateRelated(this.loc, this.byName[this.loc])}`
49+ this._entry.innerHTML = html
5050 } else {
5151 let html = `Unknown: ${this.loc}. Retun <a onclick='wiki.go("")'>home</a>, or try a <a onclick='wiki.go("${this.random()}")'>random page</a>.`
5252 this._entry.innerHTML = html