Skip to content
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

Handle slash at the end of URL #15

Closed
kokkonisd opened this issue Feb 14, 2023 · 0 comments
Closed

Handle slash at the end of URL #15

kokkonisd opened this issue Feb 14, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@kokkonisd
Copy link
Owner

Currently, for a given page file foo.md, the URLs /foo.html and /foo will render, but /foo/ will produce a 404 error.

We should automatically create a folder with the page's name and put a copy of the page in an index.html file inside that folder to support the slash at the end of the URL.

@kokkonisd kokkonisd self-assigned this Feb 14, 2023
@kokkonisd kokkonisd added the bug Something isn't working label Feb 14, 2023
kokkonisd added a commit that referenced this issue Feb 20, 2023
As mentioned in the issue, adding a slash at the end of a page name will
not cause a 404 error. For example, for a page `/foo/bar.html`, both
`/foo/bar` and `/foo/bar/` will now work, as is the standard practice.

[#15]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant