Skip to content

Commit ce61de5

Browse files
committed
fixed base path calculation for versions.json URL
1 parent 76fc1f7 commit ce61de5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/assets/js/scripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ document.addEventListener("DOMContentLoaded", function() {
3434
const isLatest = v.aliases.includes("latest");
3535

3636
// If it's the latest, point to the /latest/ alias instead of the version folder
37-
opt.value = isLatest ? `/${base_path}/latest/` : `/${base_path}/${v.version}/`;
37+
opt.value = isLatest ? `${base_path}/latest/` : `${base_path}/${v.version}/`;
3838

3939
opt.textContent = isLatest ? `${v.title} (latest)` : v.title;
4040

0 commit comments

Comments
 (0)