mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
make redirection to home page temporarily
Some users experienced 403 error when they switched from an admin account to a non-admin account, due to the browser cache containing a redirection.
This commit is contained in:
parent
dd7b14b6f2
commit
b3d9954c15
@ -70,4 +70,7 @@ Version 1.5.11
|
|||||||
|
|
||||||
- improve return path functions and filters ;
|
- improve return path functions and filters ;
|
||||||
|
|
||||||
|
Branche master
|
||||||
|
==============
|
||||||
|
|
||||||
|
- make the redirection to admin temporarily: some admin experienced cache problems (403 error) when they switched from one admin account to a non-admin one ;
|
||||||
|
@ -10,7 +10,7 @@ class DefaultController extends Controller
|
|||||||
{
|
{
|
||||||
if ($this->isGranted('ROLE_ADMIN')) {
|
if ($this->isGranted('ROLE_ADMIN')) {
|
||||||
|
|
||||||
return $this->redirectToRoute('chill_main_admin_central');
|
return $this->redirectToRoute('chill_main_admin_central', [], 302);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->render('ChillMainBundle::layout.html.twig');
|
return $this->render('ChillMainBundle::layout.html.twig');
|
||||||
|
@ -35,7 +35,7 @@ root:
|
|||||||
defaults:
|
defaults:
|
||||||
_controller: FrameworkBundle:Redirect:urlRedirect
|
_controller: FrameworkBundle:Redirect:urlRedirect
|
||||||
path: /homepage
|
path: /homepage
|
||||||
permanent: true
|
permanent: false
|
||||||
|
|
||||||
chill_main_homepage_without_locale:
|
chill_main_homepage_without_locale:
|
||||||
path: /homepage
|
path: /homepage
|
||||||
|
Loading…
x
Reference in New Issue
Block a user