Assets served from incorrect directory when 404 error occurs #1946
-
I am attempting to serve a SvelteKit app using Axum, and am having an issue with my handling of 404 errors. The build files for my Svelte app are located in the
To be clear, my code is doing exactly that. The issue is that when a 404 error occurs, the assets are pulled from the parent directory of the path that caused the 404 error to occur rather than
In both of these cases |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
How are asset paths specified in 404.html? If you have an asset at |
Beta Was this translation helpful? Give feedback.
How are asset paths specified in 404.html? If you have an asset at
GET /style.css
it doesn't matter where the file that's requesting that is because it's an absolute path.