-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wai-app-static does not redirect on folders #312
Comments
Is this occurring using yesod-static inside a Yesod app, or directly using wai-app-static? Can you give a minimal reproducing example if the latter? There are some latent issues with yesod-static when using directory listings, I don't remember the details offhand, but I think it's related. |
any application which uses wai static e.g.
The most probable candidates are: |
OK, I think I know where the problem is coming from, though I'll probably only have time to look at this in the middle of next week. |
I believe this is now fixed, can you check the newest master? |
looks good |
Hi,
I run into this serving static folders, the issue is when
Now whenever I request
https://example.com/somefolder
I have broken picture boxand whenever
https://example.com/somefolder/
not.The former tries to access
picture.jpg
from/picture.jpg
the later/somefolder/picture.jpg
The solution could be to
Redirect
if the Pieces elements point to a folder but does not have/
if it has some pathpieces in them (not the clean root)The text was updated successfully, but these errors were encountered: