Closed
Description
Gitea Version
1.15.9
Operating System
FreeBSD 13
Browser Version
Firefox 98.0
Can you reproduce the bug on the Gitea demo site?
No
Description
Cannot reproduce at try.gitea.io because it does not use a non-standard favicon. See this file on my self-hosted Gitea instance as an example.
When looking at a file directly in the browser, such as an avatar or PDF file, the default favicon is used instead of the custom favicon. At least in Firefox, the browser displays the favicon at example.com/favicon.ico
when viewing a file. On HTML pages, the browser correctly uses example.com/assets/img/logo.svg
.
I have configured the favicon by adding the files favicon.ico
, favicon.png
, logo.png
, and logo.svg
to $GITEA_CUSTOM/public/img/
.
Screenshots
On the left: correct favicon is used for an HTML page.
On the right: default favicon is used for an image.