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

Ensure req.params is correctly populated for Routers with a non-default root path. #1207

Merged
merged 1 commit into from Sep 20, 2013

Conversation

unkillbob
Copy link
Contributor

Found what I believe to be a bug after pulling down the changes in #1198 where the route regex's aren't correctly matched (and hence the req.params aren't correctly populated) if the Router has a non-default root path. This was because the route regex is run over the full path being dispatched rather than the rootless path.

…lt root path (i.e. more than just "/" e.g. "/foo/").
@ericf
Copy link
Member

ericf commented Sep 20, 2013

Ah yes! Great catch, and thanks for the PR with tests! I'll merge it tomorrow in the AM. Thanks!

@ericf ericf merged commit 705efde into yui:dev-3.x Sep 20, 2013
@unkillbob unkillbob deleted the router-req-params-with-root branch September 22, 2013 19:42
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.

None yet

2 participants