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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
return correct file in dir if dir has same name as file #6569
Conversation
- bar.html - bar |- baz.html _GET /bar/_ _Before:_ Returns bar.html _After:_ Returns bar.html _GET /bar/baz_ _Before:_ Returns bar.html _After:_ Returns bar/baz.html _GET /bar/whatever_ _Before:_ Returns bar.html _After:_ Returns 404 This fixes jekyll#6475
@ashmaroli Yes, this is checked by this test. |
Have you verified this against GitHub Pages? Ideally we'd keep this server behaviour the same, especially around an edge case like this which is confusing to users. |
@parkr Checked the current Github-Pages behavior with https://janpio.github.io/jekyll-path-test/ (provided by @janpio ). After this PR, webrick should have the same behavior. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 馃憤
@jekyllbot: merge +bug |
|- baz.html
GET /bar/
Before: Returns bar.html
After: Returns bar.html
GET /bar/baz
Before: Returns bar.html
After: Returns bar/baz.html
GET /bar/whatever
Before: Returns bar.html
After: Returns 404
This fixes #6475. Thanks @janpio for the great reproduction script! 馃憤
cc: @jekyll/build