From 98b7714c3b2ee2109206327f774cd035e231fe64 Mon Sep 17 00:00:00 2001 From: Yarden Shoham Date: Fri, 17 Feb 2023 09:22:05 +0200 Subject: [PATCH] Fix 404 error viewing the LFS file (#22945) (#22948) Backport #22945 Fix #22734. According to [`view_file.tmpl`](https://github.com/go-gitea/gitea/blob/main/templates/repo/view_file.tmpl#L82), `lfs_file.tmpl` should use `AssetUrlPrefix` instead of `AppSubUrl`. Co-authored-by: Zettat123 Co-authored-by: Jason Song --- templates/repo/settings/lfs_file.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/settings/lfs_file.tmpl b/templates/repo/settings/lfs_file.tmpl index 6d20aaddef..379ef8009a 100644 --- a/templates/repo/settings/lfs_file.tmpl +++ b/templates/repo/settings/lfs_file.tmpl @@ -35,7 +35,7 @@ {{.locale.Tr "repo.audio_not_supported_in_browser"}} {{else if .IsPDFFile}} - + {{else}} {{.locale.Tr "repo.file_view_raw"}} {{end}}