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

No Favicon on bookmark bar when bookmarking Firefox Relay site #3431

Open
ManuelCalidonio opened this issue May 15, 2023 · 3 comments
Open
Labels
🐛 bug Something isn't working

Comments

@ManuelCalidonio
Copy link

User report:

_The bookmark url is https://relay.firefox.com/accounts/profile/

The bookmark comes in later and it looks like how it should in the tab of the website
image
but here it is on my bookmark bar (default no favicon bookmark image)
image
I have gone ahead and tried bookmarking it again and that image is the result.

here is the console error
image
here is the network tab
image

The favicon.ico 404s and then later comes in as favicon.svg as you can see in the network tab at the bottom.

you can even visit https://relay.firefox.com/favicon.ico and see
Not Found
The requested resource was not found on this server._

@lloan
Copy link
Contributor

lloan commented Jun 23, 2023

@Vinnl is there a reason we haven't added a favicon.ico via _document in our project? Or should we take this opportunity to do so?

@Vinnl
Copy link
Collaborator

Vinnl commented Jun 23, 2023

@lloan Hmm, we do refer to a favicon here:

<link rel="icon" type="image/svg+xml" href={favicon.src}></link>

It's not a .ico though, but that should not be a problem for modern browsers. I think what might be the problem is that we're importing the favicon image, which means that Next.js compresses it and generates a unique URL so that it can be cached for a long time - but every time we deploy, that URL might change. So a fix might be to refer directly to /favicon.svg, which does exist.

This was referenced Jun 23, 2023
@lloan
Copy link
Contributor

lloan commented Jun 24, 2023

@Vinnl PR to fix the missing resource created. I tested on FF, PRD site, I can add bookmark just fine. But this should address the issue with the 404. #3579

@lloan lloan added the 🐛 bug Something isn't working label Jun 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants