-
Notifications
You must be signed in to change notification settings - Fork 42
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
Named param being removed from URL #115
Comments
Named params are optional not mandatory so having two routes with only named params is not expected. What I would suggest is having only one route and then inside the route rendering Course or Lesson depending on id being present or not.
This link may also help. #88 |
This should work as well:
|
With this one, would the URL be |
With the following routes, if I visit /courses/sewing-course/lesson-1 it changes the URL to /courses/sewing-course (i.e. it's removing the :id parameter from the URL. How do I stop this? The correct compnent (Lesson) is being used and I can still access the named parameters :slug and :id, it's just that I want the URL preserved.
The text was updated successfully, but these errors were encountered: