diff --git a/routing/redirect_in_config.rst b/routing/redirect_in_config.rst index 89864c4c06c..a578acceb28 100644 --- a/routing/redirect_in_config.rst +++ b/routing/redirect_in_config.rst @@ -113,7 +113,10 @@ action: controller: Symfony\Bundle\FrameworkBundle\Controller\RedirectController::redirectAction defaults: route: sonata_admin_dashboard + # make a permanent redirection... permanent: true + # ...and keep the original query string parameters + keepQueryParams: true .. code-block:: xml @@ -129,7 +132,10 @@ action: Symfony\Bundle\FrameworkBundle\Controller\RedirectController::redirectAction sonata_admin_dashboard + true + + true @@ -145,7 +151,10 @@ action: $collection->add('admin', new Route('/wp-admin', array( '_controller' => 'Symfony\Bundle\FrameworkBundle\Controller\RedirectController::redirectAction', 'route' => 'sonata_admin_dashboard', + // make a permanent redirection... 'permanent' => true, + // ...and keep the original query string parameters + 'keepQueryParams' => true, ))); return $collection;