aboutsummaryrefslogtreecommitdiff
path: root/templates/repo/view_list.tmpl
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-09-18 16:19:31 +0800
committerGitHub <noreply@github.com>2020-09-18 16:19:31 +0800
commitdda1092e74fa82f23a7ad62434fc60200f8df5ca (patch)
tree6e4d012ec23431947b52081d8f979acc1f3a2f21 /templates/repo/view_list.tmpl
parent8b75e9a442fdd0768b8a6d1bd6dcb085bbb7f2b7 (diff)
gitutil: infer submodule with baseURL when it is a relative path (#6337)
Diffstat (limited to 'templates/repo/view_list.tmpl')
-rw-r--r--templates/repo/view_list.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl
index fd0852d8..93390909 100644
--- a/templates/repo/view_list.tmpl
+++ b/templates/repo/view_list.tmpl
@@ -28,7 +28,7 @@
{{if .Submodule}}
<td>
<span class="octicon octicon-file-submodule"></span>
- <a href="{{InferSubmoduleURL .Submodule}}">{{.Entry.Name}} @ {{ShortSHA1 .Submodule.Commit}}</a>
+ <a href="{{InferSubmoduleURL $.RepoLink .Submodule}}">{{.Entry.Name}} @ {{ShortSHA1 .Submodule.Commit}}</a>
</td>
{{else}}
<td class="name">