mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +01:00
Fix versions.json URL in unstable and local environment (#2259)
This commit is contained in:
parent
22c0952003
commit
7a1eb81c9c
|
|
@ -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)
|
||||
|
|
|
|||
1
changelogs/internal/newsfragments/2259.clarification
Normal file
1
changelogs/internal/newsfragments/2259.clarification
Normal file
|
|
@ -0,0 +1 @@
|
|||
Add version picker in the navbar.
|
||||
Loading…
Reference in a new issue