diff options
author | a1012112796 <1012112796@qq.com> | 2021-04-28 20:35:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-28 12:35:06 +0000 |
commit | 1e877613bf941ae9bed17e5b6c5b118bd3107777 (patch) | |
tree | e6b34d3244a869dbde02e5194deab29d3d511328 /integrations/links_test.go | |
parent | cc7d118b126cf451b1f3f9df72eb2f2e091d7ebc (diff) | |
download | gitea-1e877613bf941ae9bed17e5b6c5b118bd3107777.tar.gz gitea-1e877613bf941ae9bed17e5b6c5b118bd3107777.zip |
add `/assets` as root dir of public files (#15219)
* add `/assets` as root dir of public files
Signed-off-by: a1012112796 <1012112796@qq.com>
* move serviceworker.js
* make fmt
* fix some link
* fix test
* Apply suggestions from code review
Co-authored-by: silverwind <me@silverwind.io>
* Apply suggestions from code review
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'integrations/links_test.go')
-rw-r--r-- | integrations/links_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/links_test.go b/integrations/links_test.go index e16b688c8d..3b9c245fc3 100644 --- a/integrations/links_test.go +++ b/integrations/links_test.go @@ -51,7 +51,7 @@ func TestRedirectsNoLogin(t *testing.T) { "/user2/repo1/src/master": "/user2/repo1/src/branch/master", "/user2/repo1/src/master/file.txt": "/user2/repo1/src/branch/master/file.txt", "/user2/repo1/src/master/directory/file.txt": "/user2/repo1/src/branch/master/directory/file.txt", - "/user/avatar/Ghost/-1": "/img/avatar_default.png", + "/user/avatar/Ghost/-1": "/assets/img/avatar_default.png", "/api/v1/swagger": "/api/swagger", } for link, redirectLink := range redirects { |