How could I remove the get query from the URI, so I can use this method:
$request->getRequestUri()
And get the URI without the GET query part?
I.e. this:
/module/controller/action/par/val?par2=aaa
I would get:
/module/controller/action/par/val