@@ -57,6 +57,7 @@ function Wiki (sites) {
5757
5858 this.go = (q) => {
5959 this.loc = q
60+ window.location.hash = q.toUrl()
6061 this.refresh()
6162 }
6263
@@ -106,4 +107,5 @@ function Wiki (sites) {
106107 this.filter = (lines) => {
107108 return lines.split('\n').filter((line) => { return line.indexOf(' = `') < 0 && line.trim().length > 1 }).join('\n')
108109 }
110+ String.prototype.toUrl = function () { return this.toLowerCase().replace(/ /g, '+').replace(/[^0-9a-z\+\:\-\.\/\~]/gi, '').trim() }
109111}