Skip to content

Conversation

AliceKLWilliams
Copy link

Uses the suggested fix in https://github.com/dannyvankooten/AltoRouter/issues/221#issuecomment-424599922 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