cookie-consent-bundle icon indicating copy to clipboard operation
cookie-consent-bundle copied to clipboard

Request _route parameter is overridden

Open Systemcheck opened this issue 3 years ago • 0 comments

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?

Systemcheck avatar Feb 14 '22 09:02 Systemcheck