Closed dewodt closed 5 months ago
Thanks, could you please create a more minimal reproduction. You can make one via https://astro.new/latest . It helps us to isolate the problem without having to remove extra things that are not related.
Hello @dewodt. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with needs repro
will be closed if they have no activity within 3 days.
This is not an issue with the framework itself but with specific pages. The SVG format icon is not well supported by Safari on iOS, so it is best to define the icon also in PNG format and optionally add an apple-touch-icon.
Update: I did not alter any metadata or image extensions. The only change I made was upgrading to the latest version of Astro. After waiting for about a week, everything resolved itself.
Thank you for the responses!
Astro Info
If this issue only occurs in one browser, which browser is a problem?
Firefox
Describe the Bug
As the title suggests, Favicon or Icon doesnt appear when seen using IOS Firefox on websites that are made with Astro.js. I spent hours debugging this, and it turns out I think it's a framework issue. I compared my Nextjs & Vue projects where it works and tried to apply it here, but nothing changes. Then I try to compare it with other Astro projects and it turns out other astro projects suffers from the same bug too.
Here are some examples:
Official Astro.js site (uses Astro 4.9.3) Repo link: (https://github.com/withastro/docs)[https://github.com/withastro/docs]
Starlight (uses Astro 4.8.6) Repo link: (https://github.com/withastro/starlight)[https://github.com/withastro/starlight]
T3.gg (uses Astro 3.0.5) Repo link: (https://github.com/t3dotgg/t3-astro)[https://github.com/t3dotgg/t3-astro]
My own website (uses latest Astro 4.10.1) Repo link: (https://github.com/dewodt/portfolio)[https://github.com/dewodt/portfolio]
But then I tried to create a new minimal Astro project, add the favicon tags (same with like in my project), and deploy it to vercel. Suprisingly it works somehow. All of these (more complex) Astro site don't work but this minimal Astro site works. Repo link: https://github.com/dewodt/astro-favicon-bug
What's the expected result?
The expected result is each website icon should be able to be seen in IOS Firefox. Here are the examples where the icon is loaded
MDN Website
Next.js's website
Link to Minimal Reproducible Example
https://github.com/dewodt/portfolio
Participation