@@ -65,7 +65,7 @@ function Wiki (sites) {
67 this.at = (q = '') => {
67 this.at = (q = '') => {
68− return this.loc.toUpperCase() === q.toUpperCase()
68+ return this.loc.toUpperCase() === q.toUpperCase() || this.cat(this.loc).toUpperCase() === q.toUpperCase()
71 this.random = () => {
71 this.random = () => {
@@ -75,8 +75,11 @@ function Wiki (sites) {
77 this.related = (name) => {
77 this.related = (name) => {
78+ return this.byCat[this.cat(name)]
81+ this.cat = (name) => {
78− const cat = this.byName[name][0].cat
82+ return this.byName[name] ? this.byName[name][0].cat : ''
79− return this.byCat[cat]
82 this.templateRelated = (name, entry) => {
85 this.templateRelated = (name, entry) => {