We have a use case where if our user account has a certain flag that they are redirected to a specific page.

Is there a way to hook into the root controller or some sort of router mechanism such that we can do a quick test:

if (!$userAccount->hasSpecialFlag && !startsWith($currentRoute, 'specific/')) {
    return; // or end request...

// Continue with request as normal...
  • Hi. Have you maybe figured it out? – piotrpog Jul 14 at 23:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.