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

Support /subpath/:parameter route #596

Closed
cctuan opened this issue Jan 1, 2017 · 5 comments
Closed

Support /subpath/:parameter route #596

cctuan opened this issue Jan 1, 2017 · 5 comments

Comments

@cctuan
Copy link

cctuan commented Jan 1, 2017

Does next.js have a plan to support customized route like domain/path/:id and it will go to pages/path and use id as a query parameter?

I've made some rough changes in my forked repo
cctuan@cb31cb0
which support developer customize route in next.config.js

@nkzawa
Copy link
Contributor

nkzawa commented Jan 1, 2017

I believe you mean something like https://github.com/zeit/next.js/tree/master/examples/parameterized-routing.

We don't support built-in routings, but you can implement it with custom server API.
See #291 for more details about this decision.

@nkzawa nkzawa closed this as completed Jan 1, 2017
@cctuan
Copy link
Author

cctuan commented Jan 1, 2017

thank you for your quick response

@ghost
Copy link

ghost commented Feb 9, 2017

I know you guys so far decided you won't support this out of the box, but this is such an obvious and "basic" feature I feel if you provide routing at all (which you do), this should be part of it and work automagically..

@arunoda
Copy link
Contributor

arunoda commented Feb 9, 2017

@bassbump it's not like we don't support it. We do support it.
See: https://github.com/arunoda/coursebook-ui/blob/master/server.js#L40

@frol
Copy link
Contributor

frol commented Feb 10, 2017

@bassbump there are quite a few extensions out there:

@lock lock bot locked as resolved and limited conversation to collaborators May 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants