-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
Case sensitive router #271
Case sensitive router #271
Comments
@bryanrsmith I'm thinking that our pattern matching should be case-insensitive but that when we pass the parsed parameters on to the activate method, they should retain their original casing. What do you think? |
I agree. |
If this is changed I would like to have an option for the router to remain case sensitive. |
I would also be interested in the router being case insensitive. |
I have a strange behaivor with the router tests. I have add after
And the new test passed ... Should this fail? |
I'd love to see some movement on this feature. |
I would like to help to implement it but have no experience with tests. Anybody can tell me how to test it in order to try implement it? |
Take a look at some of the existing tests in the repo and see how they are put together. If you have questions, I'm sure @bryanrsmith can help you out. |
Yes, I have looked to the rest of the test, and I have copied the The problem is that it should fail but passed ... I don't understand :D. If I write the test with other route, for example:
Both fails, the problem is when I try to test the case sentive route navigate its works ... like if the router is case insensitive ... I don't get it to fail with case sensitive routes ... |
I'm thinking ... should be this issue related to "route-recognizer"?? |
I have created a pull request on "route-recognizer" to be case insensitvie: aurelia/route-recognizer#20 If this pull request is accepted will be easy to enable it by each route. |
@bryanrsmith or @jedd-ahyoung Can you review the PR? |
@EisenbergEffect Left a few comments for minor issues. I'm not sure about the API, though. It looks like we're adding an API for specifying whether or not the router is case sensitive, and then letting you specify an override on each individual route. IMO we should just make the router case insensitive by default, and let routes specify otherwise. I think that would be a less surprising default, and putting the only API on the route config means I don't have to look elsewhere to figure out how a particular route will behave. |
@bryanrsmith I'm agree with your comments on the PR. I'm agree about API notes too, if @EisenbergEffect is agree too I can make the changes. @EisenbergEffect are you agree? |
@tolemac Yes, I agree. Let's proceed 😄 Also, I noticed that you haven't yet signed our CLA. We would appreciate it if you would consider doing that for us. Before signing, please take a few minutes to read our contributing guidelines. These guidelines will help get you up to speed on how our community likes to operate and how the pull request process works. Once you have read that, assuming you are in agreement, simply sign our online CLA. Please CC myself and @bryanrsmith when you have signed the CLA and made the change that bryan recommends. |
@EisenbergEffect and @bryanrsmith my apologies, I didn't read the contributing guidelines. Well, I have read it now, and I have cancel the pull request and I have done other following the guidelines. Here is the new pull request: aurelia/route-recognizer#21 |
Well, the changes on route-recognizer aren't enougth to close this issue.
I'm trying to write a spec to test the router to navigate to case sensitive routes. |
@bryanrsmith, @EisenbergEffect I just finished the changes on the router. I have replace the How to do it? have I to wait to you accept the |
@bryanrsmith Can you review? |
Done. |
The routing is case sensitive and I am not quite sure if it's intended to be like this and url's should not be case sensitive.
I have this route:
and I have a link dependent on that route:
<a href="#/fertigung/Waage/${formular.Id}" class="btn btn-white btn-xs"> Waage</a>
As you can see I have written "Waage" with a capital "W" in the html link, which results to a redirect to the default route. Shouldn't the route itself be case insensitive?
The text was updated successfully, but these errors were encountered: