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

Closed
5 tasks done
elendil7 opened this issue May 16, 2024 · 14 comments
Closed
5 tasks done

[BUG] Favicon not loading on page load #1588

elendil7 opened this issue May 16, 2024 · 14 comments
Assignees
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working ✅ Fixed [ISSUE] Auto-Assigned to Tickets whose fix has been deployed

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
@github-project-automation github-project-automation bot moved this to Awaiting Triage in Dashy V3 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
@mshpp
Copy link

mshpp commented Jun 11, 2024

If anybody is using Caddy as a reverse proxy and looking for a quick fix: modify your Caddyfile to rewrite the favicon path:

dashy.domain.example {
  reverse_proxy http://<your-ip-here>
  rewrite /img/icons/favicon-16x16.png /favicon.ico
}

If you also need Apple support (or whatever that failed call to apple-touch-icon-152x152.png should be), you can add it in the same way:

rewrite /img/icons/apple-touch-icon-152x152.png /favicon.ico

@alvarodev-lc

This comment has been minimized.

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Jul 17, 2024
@CrazyWolf13

This comment has been minimized.

@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Jul 18, 2024
@Zixim

This comment has been minimized.

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Jul 31, 2024
@m42cel

This comment has been minimized.

@CrazyWolf13

This comment has been minimized.

Repository owner deleted a comment from Zixim Aug 21, 2024
@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Aug 22, 2024
@rdswords
Copy link

With today's image update, it's now working for me (Firefox). The favicon is back!

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

Yup got fixed by a PR here:
#1678

@CrazyWolf13 CrazyWolf13 added ✅ Fixed [ISSUE] Auto-Assigned to Tickets whose fix has been deployed and removed 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending labels Aug 24, 2024
@github-project-automation github-project-automation bot moved this from Up Next to Done in Dashy V3 Aug 24, 2024
@elendil7
Copy link
Author

Thank you!
image

@Zixim
Copy link

Zixim commented Aug 25, 2024

confirmed, thx for the merge !

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 ✅ Fixed [ISSUE] Auto-Assigned to Tickets whose fix has been deployed
Projects
Status: Done
Development

No branches or pull requests

10 participants