Is it possible to use comma instead of slash in routing path. Example
localhost/products,news
instead of
localhost/products/news
Thank you!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can map a route like this:
Update:
I found the problem. Commas are not treated like slashes. You can skip parameters when you are using slashes but that’s not the case with commas. When you use commas you have to give all that’s in the route. So you should provide all 3 parameters or it will not work. http://domain.com/files,details,3 will work but http://domain.com/files,index won’t. There isn’t a second comma in that URL so it won’t match the route. So you write another route before the first one.