Fixed invalid version selector URL

This commit is contained in:
squidfunk
2021-02-25 16:28:53 +01:00
parent 1aacca36a2
commit f40112e4c5
4 changed files with 2 additions and 41 deletions

View File

@@ -142,7 +142,7 @@ export function mountHeaderTitle(
/* Render version selector */
const config = configuration()
if (config.version?.provider === "mike")
requestJSON<Version[]>(new URL("../versions.json", config.base))
requestJSON<Version[]>(new URL("versions.json", config.base))
.subscribe(versions => {
const topic = getElementOrThrow(".md-header__topic", el)
topic.appendChild(renderVersionSelector(versions))