diff options
| author | XhmikosR <[email protected]> | 2024-03-22 11:50:03 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-03-22 11:50:03 +0200 |
| commit | 11037f8407d2533bdb2d70962a1802d2ecfeadc9 (patch) | |
| tree | 9076774ed955b0f2c111a3a277938d548550ecb4 /site/layouts/partials/docs-sidebar.html | |
| parent | d1636a7540ae935ddd27462333c2bdf5a6eadef0 (diff) | |
| download | bootstrap-11037f8407d2533bdb2d70962a1802d2ecfeadc9.tar.xz bootstrap-11037f8407d2533bdb2d70962a1802d2ecfeadc9.zip | |
docs: use `urls.JoinPath` in more places (#39778)
Diffstat (limited to 'site/layouts/partials/docs-sidebar.html')
| -rw-r--r-- | site/layouts/partials/docs-sidebar.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/site/layouts/partials/docs-sidebar.html b/site/layouts/partials/docs-sidebar.html index 891a47306..51e7bac4f 100644 --- a/site/layouts/partials/docs-sidebar.html +++ b/site/layouts/partials/docs-sidebar.html @@ -36,7 +36,8 @@ {{- else }} <li class="bd-links-span-all mt-1 mb-3 mx-4 border-top"></li> <li class="bd-links-span-all"> - <a href="/docs/{{ $.Site.Params.docs_version }}/{{ $group_slug }}/" class="bd-links-link d-inline-block rounded small {{ if $is_active_group }} active{{ end }}"{{ if $is_active_group }} aria-current="page"{{ end }}> + {{- $href := urls.JoinPath "/docs" $.Site.Params.docs_version $group_slug "/" }} + <a href="{{ $href }}" class="bd-links-link d-inline-block rounded small{{ if $is_active_group }} active{{ end }}"{{ if $is_active_group }} aria-current="page"{{ end }}> {{ $group.title }} </a> </li> |
