cookie-consent-bundle
cookie-consent-bundle copied to clipboard
Request _route parameter is overridden
Hey, i have a problem with override the current route.
I have a maintenance listener which is listening to whitelisted routes to show or even not.
$route = $attributes->get('_route');
dd($route) // returned 'login'
if(!\in_array($route,$this->whitelist)) {
dd($route); //at this point the $route is 'ch_cookie_consent.show_if_cookie_consent_not_set'
}
How can i solve this issue? I dont need Cookie Consent at this point and why it is changed?