docs: make url absolute in version selector

This commit is contained in:
tbreuss 2023-05-05 05:21:56 +02:00 committed by Claudia Meadows
parent f1fcaa6041
commit 3fd24e3c73
No known key found for this signature in database
GPG key ID: C86B594396786760

View file

@ -95,7 +95,7 @@ async function archiveDocsSelect() {
var options = archiveDirs
.map((ad) => `<option>${ad}</option>`)
.join("")
return `<select id="archive-docs" onchange="location.href='archive/' + this.value + '/index.html'">${options}</select>`
return `<select id="archive-docs" onchange="location.href='/archive/' + this.value + '/index.html'">${options}</select>`
}
function encodeHTML (str) {