1
0
mirror of https://github.com/osmarks/website synced 2024-12-24 17:10:32 +00:00

Fix links

This commit is contained in:
osmarks 2020-03-15 18:37:33 +00:00
parent d7b33c2753
commit abd5ae9ecf

View File

@ -111,10 +111,10 @@ url: /infipage/p
var canonical = encodeBignum(page) var canonical = encodeBignum(page)
if (canonical !== afterSlash) { if (canonical !== afterSlash) {
console.log(canonical, afterSlash, "Mismatch!") console.log(canonical, afterSlash, "Mismatch!")
window.location.href = `/infipage/${canonical}` window.location.href = "/infipage/" + canonical
} }
prev.href = encodeBignum(page.minus(1)) prev.href = "/infipage/" + encodeBignum(page.minus(1))
next.href = encodeBignum(page.plus(1)) next.href = "/infipage/" + encodeBignum(page.plus(1))
pagecount.innerText = "Page " + pageString pagecount.innerText = "Page " + pageString
} }
loadPage() loadPage()