-
Notifications
You must be signed in to change notification settings - Fork 3k
feat(urlMatcherFactory): Added path param type to allow forward slashes in parameters, and not encode them #1738
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
Conversation
How does it know when to stop with that param and move on to the next? |
@eddiemonge it works in the same way to the "any" type, which also matches the same regex. I guess any parameter matching issues would also be encountered with that type, but this new type just doesn't encode the slashes |
Thanks for the contribution. Please see http://prjs.radify.io/#/angular-ui/ui-router/pulls/1738
That makes it sound like it wouldn't work in a symmetrical way (also I don't see any tests for de-coding). Is that true? |
Wouldn't #2005 this fix the issue too? |
@nateabele I've tried to fix the PR subject, I'm not sure why it's not gone all green though - am I missing something obvious? You are right about the symmetry problems. The following test fails:
But using the
I hope you get what I'm trying to do here, and that I was trying to keep as close to the I can actually fix the symmetry problem with my new
I tried something similar for the @ckniffen I don't think this is fixed in that other PR since that is about encoding and decoding of the slashes. I am trying to avoid encoding them at all. |
Sorry it's not obvious from the language (I'll fix that), but it's the commit message itself (not the PR title) that needs to be amended.
Well yeah, because |
I think a regex defined parameter should also not be encoded. Example |
Leaving aside the fact that this would be a serious and pervasive BC-break, it sort of ignores the fact that it breaks the boundary between You're already able to implement a custom |
This issue has been automatically marked as stale because it has not had This does not mean that the issue is invalid. Valid issues Thank you for your contributions. |
Solves #733
I couldn't see anywhere to add any documentation for the default types so I could add this to it.
Please let me know if anything wants fixing, this is my first PR for angular.