🐛 BUG: False 404 logged for public files when base
is set
#3808
Labels
- P2: nice to have
Not breaking anything but nice to have (priority)
base
is set
#3808
What version of
astro
are you using?1.0.0-beta.63
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
pnpm
What operating system are you using?
Linux
Describe the Bug
When a
base
is configured to/blog
and the page requests an image from thepublic/
folder viasrc="/blog/full-logo-light.png"
, although the request succeeds and the image is correctly displayed, there is a false 404 message logged in the console:The expected behavior is that the above message is never logged.
Edit: And if a
404.astro
file is added tosrc/pages/
, the image will not load. The expected behavior is that the image will load anyway.Link to Minimal Reproducible Example
https://github.com/AllanChain/astro-base-bug
Participation
The text was updated successfully, but these errors were encountered: