Next.js Discord

Discord Forum

weird image initiating a request

Unanswered
Atlantic cod posted this in #help-forum
Open in Discord
Atlantic codOP
I'm puzzled, I added favicons using file path as recommended, but now I see that every icon is initiating a new request to the homepage with a locale /en?xyz which correspond to the generated string attached to the image. This results in the full page being loaded again, once per image.

Can someone please help me understand the problem?

4 Replies

Atlantic codOP
here's my images in the app/ folder as by the documentation. I'm using next-intl package for internationalization.
this is how it looks in the generated HTML file:
Atlantic codOP
OK after fiddling a little bit with it, I decided to not use the file path and just define icons in the metadata. This works.
There must be a bug between the file based icons and next-intl
Lionhead
just try to move it to public folder