Check if $this->requestHelper->getMainRequest()->attributes->get('_route_params') does not return null and if so, set it to an empty array. It this case occurs, the routing leads to some errors, in my case it was not possible to use the default error page mechanism from pimcore, i always got an error 500.
Check if $this->requestHelper->getMainRequest()->attributes->get('_route_params') does not return null and if so, set it to an empty array. It this case occurs, the routing leads to some errors, in my case it was not possible to use the default error page mechanism from pimcore, i always got an error 500.