fix: correctly generate redirect url after form submission
This commit is contained in:
1 parent
6f84fc755b
commit
6b807f358e
2 files changed
+2
-2
No files matched your search
@@ -46,7 +46,7 @@ class CreateController extends AbstractController
|
|||||||
'label' => $boardService->getLabel(),
|
'label' => $boardService->getLabel(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$returnUrl = $this->redirectToRoute('app_admin_accommodation_edit', [
|
$returnUrl = $this->generateUrl('app_admin_accommodation_edit', [
|
||||||
'id' => $accommodation->getId(),
|
'id' => $accommodation->getId(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ class EditController extends AbstractController
|
|||||||
'label' => $boardService->getLabel(),
|
'label' => $boardService->getLabel(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$returnUrl = $this->redirectToRoute('app_admin_accommodation_edit', [
|
$returnUrl = $this->generateUrl('app_admin_accommodation_edit', [
|
||||||
'id' => $accommodation->getId(),
|
'id' => $accommodation->getId(),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user