Browse Source

Open external wiki in new window (#2489)

Jonas Östanbäck 2 years ago
parent
commit
3fecf94086
1 changed files with 1 additions and 1 deletions
  1. 1 1
      templates/repo/header.tmpl

+ 1 - 1
templates/repo/header.tmpl

@@ -86,7 +86,7 @@
86 86
 			{{end}}
87 87
 
88 88
 			{{if or (.Repository.UnitEnabled $.UnitTypeWiki) (.Repository.UnitEnabled $.UnitTypeExternalWiki)}}
89
-				<a class="{{if .PageIsWiki}}active{{end}} item" href="{{.RepoLink}}/wiki">
89
+				<a class="{{if .PageIsWiki}}active{{end}} item" href="{{.RepoLink}}/wiki" {{if (.Repository.UnitEnabled $.UnitTypeExternalWiki)}} target="_blank" {{end}}>
90 90
 					<i class="octicon octicon-book"></i> {{.i18n.Tr "repo.wiki"}}
91 91
 				</a>
92 92
 			{{end}}