pimcore / demo

The Official Pimcore Demo Package - You're new to Pimcore? That's your entry point! 🤓
Other
101 stars 107 forks source link

Update PimcoreUrl.php #523

Closed kingjia90 closed 1 year ago

kingjia90 commented 1 year ago

Rebased https://github.com/pimcore/demo/pull/518 for Pimcore 10 demo as well

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.