aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-04-22 11:34:50 +0100
committerGitHub <noreply@github.com>2020-04-22 11:34:50 +0100
commit4ee70a9ec91148ffb9fc9d24e5dda47ec299bd61 (patch)
treea6557ad5bf0701e5bb8659d983d58fb059ab0e3b /templates
parent7e20f1cb5b3ef494676f3629e4980c8cdd64525b (diff)
downloadgitea-4ee70a9ec91148ffb9fc9d24e5dda47ec299bd61.tar.gz
gitea-4ee70a9ec91148ffb9fc9d24e5dda47ec299bd61.zip
Fix submodule paths when AppSubUrl is not root (#11098)
Fix submodule paths when AppSubUrl is not root Fix #11002 Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'templates')
-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 5f4209971f..9e77a4866c 100644
--- a/templates/repo/view_list.tmpl
+++ b/templates/repo/view_list.tmpl
@@ -64,7 +64,7 @@
<td>
<span class="truncate">
{{svg "octicon-file-submodule" 16}}
- {{$refURL := $commit.RefURL AppUrl $.BranchLink}}
+ {{$refURL := $commit.RefURL AppUrl $.Repository.FullName}}
{{if $refURL}}
<a href="{{$refURL}}">{{$entry.Name}}</a> @ <a href="{{$refURL}}/commit/{{$commit.RefID}}">{{ShortSha $commit.RefID}}</a>
{{else}}