aboutsummaryrefslogtreecommitdiff
path: root/site/layouts/partials/docs-versions.html
diff options
context:
space:
mode:
Diffstat (limited to 'site/layouts/partials/docs-versions.html')
-rw-r--r--site/layouts/partials/docs-versions.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/site/layouts/partials/docs-versions.html b/site/layouts/partials/docs-versions.html
index 7bb7231ef..c465d02e9 100644
--- a/site/layouts/partials/docs-versions.html
+++ b/site/layouts/partials/docs-versions.html
@@ -5,9 +5,9 @@
{{- $versions_link := "" -}}
{{- if and (eq .Layout "docs") (eq $page_version .Site.Params.docs_version) -}}
- {{- $versions_link = printf "%s/%s/" $group_slug $page_slug -}}
+ {{- $versions_link = urls.JoinPath $group_slug $page_slug "/" -}}
{{- else if (eq .Layout "single") -}}
- {{- $versions_link = printf "%s/" $page_slug -}}
+ {{- $versions_link = urls.JoinPath $page_slug "/" -}}
{{- end -}}
{{- $added_in_51 := eq (string .Page.Params.added.version) "5.1" -}}