I want to handle basic url [https://someurl/edit/17] as well friendly url [https://someurl/edit?id=17]
I can write route for both the url
But in my action I have to check request object as well as dispatcher object to get the id param
Is there any way I can merger this object or their methods so that I can get param from both url in single object & method call?