Fix versions.json URL in unstable and local environment (#2259)

This commit is contained in:
Johannes Marbach 2025-12-05 13:10:18 +01:00 committed by GitHub
parent 22c0952003
commit 7a1eb81c9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -86,7 +86,7 @@ function appendVersion(parent, name, url) {
// versions.json from our own resources. Otherwise, we fall back to loading it
// from /unstable/versions.json, assuming we are on the spec.matrix.org deployment.
const url = currentVersion === "unstable"
? '{{ "/" | relURL }}versions.json'
? '{{ .Site.Home.Permalink }}versions.json'
: "/unstable/versions.json";
fetch(url)

View file

@ -0,0 +1 @@
Add version picker in the navbar.