Reputation: 2290
I'm trying to work on my sonata sandbox.
The problem that I face this message internal page redirection
when I try to reload profile or register routes.
Upvotes: -1
Views: 1153
Reputation: 780
Since this bundle has been updated, there is now a parameter you can set to skip this or not:
sonata.page.skip_redirection: true
Upvotes: 1
Reputation: 11
The internal page redirect is only shown for admins.
If you want to remove it go to
PageBundle/Listner/ResponseListener.php
And remove this
// display a validation page before redirecting, so the editor can edit the current page if ($page && $response->isRedirection() && $this->cmsSelector->isEditor() && !$request->get('_sonata_page_skip')) { $response = new Response($this->templating->render('SonataPageBundle:Page:redirect.html.twig', array( 'response' => $response, 'page' => $page, ))); $response->setPrivate(); $event->setResponse($response); return; }
Upvotes: 1