#params

3 messages · Page 1 of 1 (latest)

robust elm
#

my params return favicon.ico but i dont have favicon

loud nestBOT
#

Hi @robust elm. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

This issue has been reported by other Astro users as well. It seems that Astro.params returns { slug: "favicon.ico" } on every route, even when there is no "favicon.ico" in the repository. This behavior is inconsistent and sometimes stops or starts upon restarting.

A user commented that this might be due to the browser looking for the favicon file when none is provided. This is a common behavior in browsers like Chrome. You can find more information about this here (https://stackoverflow.com/questions/1321878/how-to-prevent-favicon-ico-requests).

Unfortunately, the extracts do not provide a definitive solution to this issue. You may want to check the Astro GitHub issues (https://github.com/withastro/astro/issues) for any updates or potential fixes.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: