favicon not found

The favicon is located in public/images/favicon.ico In the panel I have specified:
->favicon(asset('images/favicon.ico'))
->favicon(asset('images/favicon.ico'))
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?
No description
7 Replies
Matthew
MatthewOP2mo ago
~/Desktop/Projects/HomeServer  feature/latex +3 !1  tree public/images

public/images
├── favicon.ico
├── home1.png
├── home-fav-final.png
└── home.webp
~/Desktop/Projects/HomeServer  feature/latex +3 !1  tree public/images

public/images
├── favicon.ico
├── home1.png
├── home-fav-final.png
└── home.webp
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/
Zamion101
Zamion1012mo ago
Have you tried with public_path('images/favicon.ico') ?
Dennis Koch
Dennis Koch2mo ago
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.
Zamion101
Zamion1012mo ago
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 public
Dennis Koch
Dennis Koch2mo ago
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.
Matthew
MatthewOP2mo ago
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 🤷‍♂️

Did you find this page helpful?