Skip to content

Commit 6f10f68

Browse files
committed
Fix edit on github link
JAVA-1731
1 parent 58425b7 commit 6f10f68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/reference/themes/mongodb/layouts/partials/header/contentHeader.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{ if .IsPage }}
2-
{{ $File := .File }} {{with $File.LogicalName }}
3-
<a class="edit-link" href="https://github.com/mongodb/{{ $.Site.Data.mongodb.githubRepo }}/docs/content/{{ $File.Dir }}{{ $File.LogicalName }}" target="_blank" title="Edit {{ $File.Dir }}{{ $File.LogicalName }} on GitHub"><i class="fa fa-pencil-square-o"></i></a>
2+
{{ $File := .File }} {{with $File.LogicalName }} {{ $srcref := add (add "docs/reference/content/" $File.Dir) $File.LogicalName }}
3+
<a class="edit-link" href="https://github.com/mongodb/{{ $.Site.Data.mongodb.githubRepo }}/blob/{{ $.Site.Data.mongodb.githubBranch }}/{{ $srcref }}" target="_blank" title="Edit {{ $File.Dir }}{{ $File.LogicalName }} on GitHub"><i class="fa fa-pencil-square-o"></i></a>
44
{{end}}
55
{{end}}
66
{{ $menuItemL6 := $.Scratch.Get "menu.Item.L6"}}

0 commit comments

Comments
 (0)