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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -217,7 +217,7 @@
</script>
{% endblock %}
{% block scripts %}
<script src="{{ 'assets/javascripts/bundle.4e3fea51.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.3981fc68.min.js' | url }}"></script>
{% for path in config["extra_javascript"] %}
<script src="{{ path | url }}"></script>
{% endfor %}

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))