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

Allow full stops in route parameters #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AliceKLWilliams
Copy link

Uses the suggested fix in dannyvankooten/AltoRouter#221 (comment) in order to allow the router to parse param values with dots.

We will need to consider the implications of this, as the comment mentions that it ignores full stops so that you can ignore file extensions in URLs. This MR causes some behaviour changes:

Previously

/route/{id} with route/file.txt would not match at all.

Now

/route/{id} with route/file.txt would match, and id would be mapped to file.txt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant