Fixed version selection

This commit is contained in:
squidfunk 2021-08-11 21:31:28 +02:00
parent 9de14b4ade
commit a4ccbbb1b2
4 changed files with 6 additions and 6 deletions

View File

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

View File

@ -51,7 +51,7 @@ function renderVersion(version: Version): HTMLElement {
const config = configuration()
/* Ensure trailing slash, see https://bit.ly/3rL5u3f */
const url = new URL(`${version.version}/`, config.base)
const url = new URL(`../${version.version}/`, config.base)
return (
<li class="md-version__item">
<a href={url.toString()} class="md-version__link">