You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! We have such directories names in our static website /public/doc/changelog/0.18
And when serve-handler handles requests we have 404 for such pages.
I found reason - there is false-positive extname checking here https://github.com/zeit/serve-handler/blob/master/src/index.js#L610
But I'm not sure how it should be resolved. Maybe this check can follow next one (where handles cleanUrl)
styfle
changed the title
Incorrect behaviour for directories which have dots in the name
Incorrect 404 served for directories which have dots in the name
Feb 1, 2021
When a file url has certain symbols like number sign (#), it doesn't encode them, which makes the browser fail to navigate to the file, thinking it is a document section. This commit fixes that by encoding urls using the built-in encodeURIComponent function.
Fixesvercel#120, vercel#205, vercel/serve#726, and vercel/serve#774
Hi! We have such directories names in our static website
/public/doc/changelog/0.18
And when
serve-handler
handles requests we have 404 for such pages.I found reason - there is false-positive extname checking here https://github.com/zeit/serve-handler/blob/master/src/index.js#L610
But I'm not sure how it should be resolved. Maybe this check can follow next one (where handles
cleanUrl
)Our config if it's important
The text was updated successfully, but these errors were encountered: