We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b33f9b6 commit 8f83720Copy full SHA for 8f83720
templates/repo/header.tmpl
@@ -133,7 +133,7 @@
133
{{if not (or .Repository.IsBeingCreated .Repository.IsBroken)}}
134
<div class="overflow-menu-items">
135
{{if .Permission.CanRead ctx.Consts.RepoUnitTypeCode}}
136
- <a class="{{if .PageIsViewCode}}active {{end}}item" href="{{.RepoLink}}{{if and (ne .BranchName .Repository.DefaultBranch) (not $.PageIsWiki)}}/src/{{.BranchNameSubURL}}{{end}}">
+ <a class="{{if .PageIsViewCode}}active {{end}}item" href="{{.RepoLink}}{{if and (ne .BranchName .Repository.DefaultBranch) (not $.PageIsWiki)}}/src/{{.BranchNameSubURL}}{{else}}/code{{end}}">
137
{{svg "octicon-code"}} {{ctx.Locale.Tr "repo.code"}}
138
</a>
139
{{end}}
0 commit comments