Hi folks,
I have a website that I want to modify the routing on. My problem is that in this specific scenario I'm not sure that what I want is even possible.
I have a projects controller with an index action/view and a view action/view. When I go to projects/ i see a list of projects. when I go to projects/view/project-slug I see that specific project. what I'm hoping to do is change projects/view/project-slug to projects/project-slug. So pretty much from the same action (index) I want to have one view for when the project-slug is set in the URL and one for when it is NOT set.
How do I do this?
Thanks,
Jonesy