favicon not found
The favicon is located in
public/images/favicon.ico
In the panel I have specified:
But the favicon is not loaded. Using the devtols I see <attached image>
So if I go in localhost:8000/images/favicon.ico it will return 404. However, other files like home.webp and home1.png in the same directory, will be found. Any ideas?
7 Replies
If i remove the favicon from images/ and put it in public/ and remove this
->favicon(asset('images/favicon.ico')) from the panel, then it will work
But I want to have it in images/Have you tried with public_path('images/favicon.ico') ?
Not sure that makes a different, when the file is not accessible.
The question is, why the server can't find the favicon. Doesn't seem like a Filament issue.
Yeah it does not in case it does not serve the image. Maybe something to do with permission (unlikely) but like Dennis said, this does not look like Filament issue, I can use asset() to access
publicHm, Im just following the documentation in https://filamentphp.com/docs/4.x/styling/overview#adding-a-favicon
Sure. But we say: It's not a Filament issue. If your file is not available via direct URL, something else might be an issue.
oh I get now what you mean
Indeed it seems like it, I just have no idea why its refusing to return .ico files
but it can return other files
🤷♂️