Commit f09698a 1 parent d0e1e86 commit f09698a Copy full SHA for f09698a
File tree 4 files changed +8
-8
lines changed
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
1
{{ $baseUrl := replaceRE "/_git/.+$" "" .repo.url }}
2
2
{{ $viewURL := printf "%s?path=%s&version=GB%s&_a=contents" .repo.url .repo_path .repo_branch -}}
3
- {{ $issuesURL := printf "%s/_workitems/create/Bug?[title]=%s" $baseUrl (safeURL $.Title ) -}}
3
+ {{ $issuesURL := printf "%s/_workitems/create/Bug?[title]=%s" $baseUrl (safeURL $.context. Title ) -}}
4
4
{{ if .repo.azure.issue_area -}}
5
- {{ $issuesURL = printf "%s/_workitems/create/Bug?[title]=%s&[Area Path]=%s" $baseUrl (safeURL $.Title) (safeURL .repo.azure.issue_area) -}}
5
+ {{ $issuesURL = printf "%s/_workitems/create/Bug?[title]=%s&[Area Path]=%s" $baseUrl (safeURL $.context. Title) (safeURL .repo.azure.issue_area) -}}
6
6
{{ end -}}
7
7
< a href ="{{ $viewURL }} " class ="td-page-meta--edit td-page-meta__edit " target ="_blank " rel ="noopener "> < i class ="fa-solid fa-pen-to-square fa-fw "> </ i > {{ T "post_view_this" }}</ a >
8
8
< a href ="{{ $issuesURL }} " class ="td-page-meta--issue td-page-meta__issue " target ="_blank " rel ="noopener "> < i class ="fa-solid fa-list-check fa-fw "> </ i > {{ T "post_create_issue" }}</ a >
Original file line number Diff line number Diff line change 3
3
4
4
{{ $viewURL := path.Join .repo.url "/src/branch/" .repo_branch .repo_path -}}
5
5
{{ $editURL := path.Join .repo.url "_edit/" .repo_branch .repo_path -}}
6
- {{ $issuesQS := printf "title=%s" .repo.url (safeURL $.Title )}}
6
+ {{ $issuesQS := printf "title=%s" (safeURL $.context .Title )}}
7
7
{{ $issuesURL := path.Join .repo.url "/issues/new" -}}
8
- {{ $issuesURL = printf "%s?%S " $issuesURL $issuesQS -}}
8
+ {{ $issuesURL = printf "%s?%s " $issuesURL $issuesQS -}}
9
9
{{ $newPageStub := resources.Get "stubs/new-page-template.md" -}}
10
10
{{ $newPageQS := querify "value" $newPageStub.Content "filename" "change-me.md" | safeURL -}}
11
11
{{ $newPageURL := path.Join .repo.url "/_new/" .repo_branch (path.Dir .repo_path) -}}
Original file line number Diff line number Diff line change 3
3
4
4
{{ $viewURL := path.Join .repo.url "/tree" .repo_branch .repo_path -}}
5
5
{{ $editURL := path.Join .repo.url "/edit" .repo_branch .repo_path -}}
6
- {{ $issuesQS := printf "title=%s" .repo.url (safeURL $.Title) -}}
6
+ {{ $issuesQS := printf "title=%s" (safeURL $.context .Title) -}}
7
7
{{ $issuesURL := path.Join .repo.url "/issues/new" -}}
8
- {{ $issuesURL = printf "%s?%S " $issuesURL $issuesQS -}}
8
+ {{ $issuesURL = printf "%s?%s " $issuesURL $issuesQS -}}
9
9
{{ $newPageStub := resources.Get "stubs/new-page-template.md" -}}
10
10
{{ $newPageQS := querify "value" $newPageStub.Content "filename" "change-me.md" | safeURL -}}
11
11
{{ $newPageURL := path.Join .repo.url "/new" .repo_branch (path.Dir .repo_path) -}}
Original file line number Diff line number Diff line change 3
3
4
4
{{ $viewURL := path.Join .repo.url "/tree" .repo_branch .repo_path -}}
5
5
{{ $editURL := path.Join .repo.url "/edit" .repo_branch .repo_path -}}
6
- {{ $issuesQS := printf "issue[title]=%s" .repo.url (safeURL $.Title) -}}
6
+ {{ $issuesQS := printf "issue[title]=%s" (safeURL $.context .Title) -}}
7
7
{{ $issuesURL := path.Join .repo.url "/issues/new" -}}
8
- {{ $issuesURL = printf "%s?%S " $issuesURL $issuesQS -}}
8
+ {{ $issuesURL = printf "%s?%" $issuesURL $issuesQS -}}
9
9
{{ $newPageStub := resources.Get "stubs/new-page-template.md" -}}
10
10
{{ $newPageQS := querify "value" $newPageStub.Content "filename" "change-me.md" | safeURL -}}
11
11
{{ $newPageURL := path.Join .repo.url "/new" .repo_branch (path.Dir .repo_path) -}}
You can’t perform that action at this time.
0 commit comments