mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-24 06:43:50 -04:00
Fixed invalid versions.json URL (regression)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user