router icon indicating copy to clipboard operation
router copied to clipboard

Allow full stops in route parameters

Open AliceKLWilliams opened this issue 9 months ago • 0 comments

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.

AliceKLWilliams avatar May 20 '24 14:05 AliceKLWilliams