Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Favicon not loading on page load #1588

Open
5 tasks done
elendil7 opened this issue May 16, 2024 · 4 comments
Open
5 tasks done

[BUG] Favicon not loading on page load #1588

elendil7 opened this issue May 16, 2024 · 4 comments
Assignees
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working

Comments

@elendil7
Copy link

Environment

Self-Hosted (Docker)

System

Dashy running in Docker container behind Nginx

Version

3.1.0

Describe the problem

Dashy favicon no longer loads after update.

image
image

Additional info

No response

Please tick the boxes

@elendil7 elendil7 added the 🐛 Bug [ISSUE] Ticket describing something that isn't working label May 16, 2024
@CrazyWolf13
Copy link
Collaborator

Hi
It's really hard with such less details to diagnose this, for me it's working totally fine.

Please share your nginx conf.
You can try clearing all browser cache and cookies, and try another browser in the private window.

@pelstob
Copy link

pelstob commented May 16, 2024

Hi, I'm running pretty much the same configuration and I'm having an issue with the favicon not showing in Firefox. This is using a fully cleared cache and also in a Private Window. I can't comment update breaking it, as I only switched back to Firefox from Brave a few hours ago. I get the same problem if I bypass the reverse proxy.

If I append the various /favicon.ico, /web-icons/favicon-32x32.png etc. listed in Firefox's inspector tab to the URL most of the icons are loading.
However, if I'm reading the Network Inspector tab correctly, then Firefox is trying to use https://home.mydomain.org/img/icons/favicon-16x16.png but favicon-16x16.png doesn't exist. It's showing 404 not found in Firefox's inspector and as a directly accessed URI.

I think there are 2 issues here: The missing favicon-16x16.png and Firefox seemingly being determined to use the missing image, rather than fallback to favicon-32x32.png or favicon.ico.

Cheers.

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label May 16, 2024
@CrazyWolf13
Copy link
Collaborator

CrazyWolf13 commented May 16, 2024

Yeah I've just looked into this and in firefox the favicon is not showing up at all.

Seems to be only a problem on firefox and possibly apple devices:
image

Firefox still seems to have hardcoded a preferred size:
view-source:resource:///modules/FaviconLoader.sys.mjs

....
const FAVICON_PARSING_TIMEOUT = 100;
const FAVICON_RICH_ICON_MIN_WIDTH = 96;
const PREFERRED_WIDTH = 16;
....

I think dashy is somewhat missing the correct variable to define the favicon for firefox, however I was not able to find any working variable. It seems that firefox has issues regarding favicon dating from a month ago to 20years back 😂

I tried adding the 16x16 pixel variant which was once included:
7e4e2ed#diff-66c2900b7fcc62569ea372a2058eb4935e7559dcea7a3052b36d843a6e190734

But that did nothing, as firefox somehow expects a favicon on exactly this url:
image

@Lissy93
Copy link
Owner

Lissy93 commented May 16, 2024

Can confirm this bug, icon is not displaying on Firefox.
I'll submit a fix (by adding the appropriate icons in, and updating the paths in index.html) this weekend.

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working
Projects
Status: Awaiting Triage
Development

No branches or pull requests

5 participants