diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl
index d88d7b559..b3dee5610 100644
--- a/templates/repo/view_list.tmpl
+++ b/templates/repo/view_list.tmpl
@@ -31,7 +31,7 @@
 					<td>
 						<span class="icon octicon octicon-file-submodule"></span>
 						{{if $commit.RefUrl AppUrl}}
-							<a href="{{$commit.RefUrl}}">{{$entry.Name}}</a> @ <a href="{{$commit.RefUrl}}/commit/{{$commit.RefId}}">{{ShortSha $commit.RefId}}</a>
+							<a href="{{$commit.RefUrl AppUrl}}">{{$entry.Name}}</a> @ <a href="{{$commit.RefUrl AppUrl}}/commit/{{$commit.RefId}}">{{ShortSha $commit.RefId}}</a>
 						{{else}}
 							{{$entry.Name}} @ {{ShortSha $commit.RefId}}
 						{{end}}