sveltekit unwanted favicon request

Viewed 41

In SvelteKit App I have:

src/admin/groups

with three pages:

[id].svelte => for example: /admin/groups/1234 to load a group with id 1234

index.svelte => load a list of groups

new.svelte => create new group

by visiting /admin/groups/1234 i got an error due to favicon.png request which is not expected.

Why does it load the favicon in this page request? My config:

preprocess: preprocess(),

kit: {
    adapter: adapter()
},
files: {
    lib: "src/lib"
},
trailingSlash: 'always'
1 Answers

In app.html changing

<link rel="icon" href="%sveltekit.assets%/favicon.png" />

to

<link rel="icon" href="/favicon.png" /> 

solved the problem.

Related