mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Remove inline redirection
This commit is contained in:
@@ -220,7 +220,7 @@ class WorkZone implements ControllerProviderInterface
|
||||
if ($request->getRequestFormat() == 'json') {
|
||||
return $app->json($data);
|
||||
} else {
|
||||
return new RedirectResponse('/');
|
||||
return $app->redirect('/');
|
||||
}
|
||||
})->assert('sbas_id', '\d+')->assert('record_id', '\d+');
|
||||
|
||||
|
Reference in New Issue
Block a user