From 5a12e95d2a3bc3dcc017dfce0cb1b77b0736e6f4 Mon Sep 17 00:00:00 2001 From: Zettat123 Date: Fri, 17 Feb 2023 11:55:33 +0800 Subject: [PATCH] Fix 404 error viewing the LFS file (#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: 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 eb67de20a..54b40bd00 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}}