hotfix: fix shared page github edit link

pull/5717/head^2
Scott Anderson 2024-12-19 09:03:09 -07:00
parent 5122847981
commit 4f7e4d5992
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@
{{ if .Page.HasShortcode "duplicate-oss" }}
{{ .Scratch.Set "pageGithubLink" (replaceRE "/cloud/" "/v2/" (.Scratch.Get "pageGithubLink")) }}
{{ else if .Params.Source }}
{{ .Scratch.Set "pageGithubLink" (print "https://github.com/influxdata/docs-v2/edit/master" .Params.source) }}
{{ .Scratch.Set "pageGithubLink" (print "https://github.com/influxdata/docs-v2/edit/master/content" .Params.source) }}
{{ end }}
{{ else }}
{{ .Scratch.Set "pageGithubLink" (print "https://github.com/influxdata/docs-v2/edit/master/content/") }}