diff options
author | Louis-Maxime Piton <louismaxime.piton@orange.com> | 2022-09-27 22:01:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-27 22:01:16 +0300 |
commit | 80482af57b2ac1203e9436398e0153476907f9b4 (patch) | |
tree | d744dfe07ce14fd97b5e21bc05393273b4caa307 /site | |
parent | 597c4023141dc48868889b85676b2d7269411d23 (diff) |
Changing the way `View on GitHub` links are handled (#37214)
Diffstat (limited to 'site')
-rw-r--r-- | site/layouts/_default/docs.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/site/layouts/_default/docs.html b/site/layouts/_default/docs.html index d7fcf23c8a..1a3f9c1a16 100644 --- a/site/layouts/_default/docs.html +++ b/site/layouts/_default/docs.html @@ -16,7 +16,7 @@ <main class="bd-main order-1"> <div class="bd-intro pt-2 ps-lg-2"> <div class="d-md-flex flex-md-row-reverse align-items-center justify-content-between"> - <a class="btn btn-sm btn-bd-light mb-3 mb-md-0 rounded-2" href="{{ .Site.Params.repo }}/blob/main/site/content/{{ .Page.File.Path | replaceRE `\\` "/" }}" title="View and edit this file on GitHub" target="_blank" rel="noopener"> + <a class="btn btn-sm btn-bd-light mb-3 mb-md-0 rounded-2" href="{{ .Site.Params.repo }}/blob/v{{ .Site.Params.current_version }}/site/content/{{ .Page.File.Path | replaceRE `\\` "/" }}" title="View and edit this file on GitHub" target="_blank" rel="noopener"> View on GitHub </a> <h1 class="bd-title mb-0" id="content">{{ .Title | markdownify }}</h1> |