Skip to content

Commit

Permalink
docs: make url absolute in version selector
Browse files Browse the repository at this point in the history
  • Loading branch information
tbreuss authored and dead-claudia committed Jul 31, 2023
1 parent 1a12c67 commit ee7dcdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ee7dcdf

Please sign in to comment.