New answers tagged

1 vote
Accepted

How do I redirect to a different form in a _custom_access routing call

You have to return an access result, for example: return AccessResult::forbidden('Redirect me!'); This results in an access denied exception, which you can catch in an exception subscriber: src/...
4uk4's user avatar
  • 99.2k

Top 50 recent answers are included