Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Move trailing option into Router. Use its value as default for routes. #745

Merged
merged 1 commit into from
Jan 4, 2014

Conversation

YAndrew91
Copy link
Contributor

Reworked #727. Also made some refactoring and added more tests.

Question. What should we do in the case when you pass a pattern with a trailing slash directly into Router::match? IMO, we should truncate the slash internally, so there won't be any difference between ordinary kind of pattern and this one.

Note. If we then decide to change default value for the trailing option to true, then many tests will fail, because they use hard-coded URLs without slashes for checking result.

paulmillr added a commit that referenced this pull request Jan 4, 2014
Move trailing option into Router. Use its value as default for routes.
@paulmillr paulmillr merged commit b7d391c into chaplinjs:master Jan 4, 2014
@paulmillr
Copy link
Contributor

trailing is cool when it's false by default i think

@dbk2 dbk2 deleted the router-trailing-slashes branch May 5, 2014 13:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants