Hello,
I've created module and I have a problem with routing. After update record I would like to redirect to another route. I use this code:
$this->redirectToRoute('admin.productComment.update')
My route definition:
<route id="admin.productComment.update" path="/admin/productComment/update">
<default key="_controller">ProductComment\Controller\Admin\ProductCommentController::updateAction</default>
</route>
Is this method available only for routes defined in Config/Resources/routing/admin.xml ? - so only for Thelia base routes ?.
What's working for me is this:
URL::getInstance()->absoluteUrl('admin/productComment')
But the best solution is to usign the rout id not the path. Path can change later