AVAnnotate / admin-client

Application for building AVAnnotate websites
0 stars 0 forks source link

Automatic favicon requests from browsers get redirected to projects page #2

Closed camdendotlol closed 3 months ago

camdendotlol commented 3 months ago

Firefox (and probably most other browsers) send a request to /favicon.ico on each pageload to see if a site has a favicon. AVAnnotate's pages/[lang]/index.astro page intercepts this request and redirects to the Projects page, causing a long-running background request in the user's browser with a ton of unnecessary GitHub clones.

The redirect should be updated to not redirect when the request is for /favicon.ico.

camdendotlol commented 3 months ago

Hm, this seems to be fixed. Firefox is picking up the default Astro favicon and no longer tries to ping /favicon.ico. Not sure why it fixed itself since nothing in #3 changed anything related to the favicon or the redirect, but closing for now.