Fixed invalid versions.json URL (regression)

This commit is contained in:
squidfunk
2021-08-11 21:17:10 +02:00
parent f869d275b4
commit a855133f16
8 changed files with 12 additions and 12 deletions

View File

@@ -33,7 +33,7 @@ import { Version, renderVersionSelector } from "~/templates"
*/
export function setupVersionSelector(): void {
const config = configuration()
requestJSON<Version[]>(new URL("versions.json", config.base))
requestJSON<Version[]>(new URL("../versions.json", config.base))
.subscribe(versions => {
const topic = getElementOrThrow(".md-header__topic")
topic.appendChild(renderVersionSelector(versions))