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
When I navigate to http://localhost/dir, I don't get redirected to http://localhost/dir/ as expected.
The redirection only fails if either dir/index.html or dir/index.html.br exists. If dir is empty, the redirection succeeds and I get a 301 followed by a 404.
Link to code that reproduces the bug
No response
Expected Behavior
The redirection works fine if I comment out the line preCompressed: true.
The text was updated successfully, but these errors were encountered:
Prerequisites
Fastify version
4.28.1
Plugin version
7.0.4
Node.js version
22.8.0
Operating system
Windows
Operating system version (i.e. 20.04, 11.3, 10)
10
Description
Files:
main.js:
When I navigate to
http://localhost/dir
, I don't get redirected tohttp://localhost/dir/
as expected.The redirection only fails if either
dir/index.html
ordir/index.html.br
exists. Ifdir
is empty, the redirection succeeds and I get a 301 followed by a 404.Link to code that reproduces the bug
No response
Expected Behavior
The redirection works fine if I comment out the line
preCompressed: true
.The text was updated successfully, but these errors were encountered: