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

Optional dynamic segments #60

Closed
jamesplease opened this issue Aug 10, 2015 · 3 comments
Closed

Optional dynamic segments #60

jamesplease opened this issue Aug 10, 2015 · 3 comments

Comments

@jamesplease
Copy link
Contributor

In tildeio/router.js#102, @mgenev expressed his frustration for dealing with a complex routing situation that he believed optional dynamic segments would resolve. @machty said he would support this were a PR made here in route-recognizer, so I'm creating this issue to document it as a todo.

Prior art:

Backbone

Optional segments are wrapped in parentheses. i.e. docs/:section(/:subsection)

React Router

A question mark marks the previous segment as optional. i.e. docs/:section?

However, React is apparently switching over to parentheses because of how annoying it is to deal with the question marks (ref: remix-run/react-router#960 )

@rizkytahara
Copy link

@jmeas any solution for this?

@jamesplease
Copy link
Contributor Author

Not that I'm aware of 😛

@nathanhammond
Copy link
Contributor

Closing this in favor of emberjs/rfcs#154.

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

No branches or pull requests

3 participants