1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-28 01:10:58 +01:00

Added trailing slash to version selector URL (#2434)

* Add trailing slash to version selector URL's

* Use template literal syntax

* Remove whitespace
This commit is contained in:
wbekerom 2021-03-14 10:27:36 +01:00 committed by GitHub
parent ff2ade3ca8
commit 9fe820010e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,7 +68,7 @@ export function renderVersionSelector(versions: Version[]): HTMLElement {
<li class="md-version__item">
<a
class="md-version__link"
href={`${new URL(version.version, config.base)}`}
href={`${new URL(`${version.version}/`, config.base)}`}
>
{version.title}
</a>