diff --git a/site/layouts/shortcodes/docsref.html b/site/layouts/shortcodes/docsref.html index 2379de2b12e1..06523d859d06 100644 --- a/site/layouts/shortcodes/docsref.html +++ b/site/layouts/shortcodes/docsref.html @@ -1 +1,2 @@ -{{- relref . ((path.Join "docs" $.Site.Params.docs_version (.Get 0)) | relURL) -}} +{{- $pageToReference := path.Join "docs" $.Site.Params.docs_version (.Get 0) -}} +{{- relref . $pageToReference | relURL -}}