Skip to content

Commit 8f83720

Browse files
committed
it works
1 parent b33f9b6 commit 8f83720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/header.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
{{if not (or .Repository.IsBeingCreated .Repository.IsBroken)}}
134134
<div class="overflow-menu-items">
135135
{{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}}">
136+
<a class="{{if .PageIsViewCode}}active {{end}}item" href="{{.RepoLink}}{{if and (ne .BranchName .Repository.DefaultBranch) (not $.PageIsWiki)}}/src/{{.BranchNameSubURL}}{{else}}/code{{end}}">
137137
{{svg "octicon-code"}} {{ctx.Locale.Tr "repo.code"}}
138138
</a>
139139
{{end}}

0 commit comments

Comments
 (0)