include current page url in docs issue link (#3492)

pull/3501/head
Scott Anderson 2021-12-15 10:07:46 -07:00 committed by GitHub
parent 8f5e83da67
commit 651092a7bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 1 deletions

View File

@ -21,6 +21,14 @@
{{ $pageGithubLink := .Scratch.Get "pageGithubLink" }}
{{ $productGithubLink := .Scratch.Get "productGithubLink" }}
{{ $docsIssueLinkBody := print `_Describe the issue here._
%23%23%23%23%23 Relevant URLs
- ` (.RelPermalink | absURL) `
- _Provide other relevant URLs (project issues, community threads, etc.)_
` }}
{{ $pageGithubIssueLink := print "https://github.com/influxdata/docs-v2/issues/new?body=" $docsIssueLinkBody }}
<hr/>
<div class="feedback block">
<div class="support">
@ -40,7 +48,9 @@
</div>
<div class="actions">
<a href="{{ $pageGithubLink }}" class="btn edit" target="_blank">Edit this page</a>
<a href="https://github.com/influxdata/docs-v2/issues/new/choose" class="btn issue" target="_blank">Submit docs issue</a>
<a href="{{ $pageGithubIssueLink }}" class="btn issue" target="_blank">Submit docs issue</a>
<a href="{{ $productGithubLink }}" class="btn issue" target="_blank">Submit {{ $productName }} issue</a>
</div>
</div>