Symfony3 security.exception_listener.class not working
<p>I'm trying to manipulate the login target path in Symfony security, since my app makes some AJAX calls. I followed <a href="http://symfony.com/doc/current/cookbook/security/target_path.html" rel="nofollow">this documentation article</a>, but nothing happens (so I assumed <code>security.exception_listener.class</code> didn't "hook" properly). When I googled I found <a href="https://github.com/symfony/symfony/issues/15534" rel="nofollow">this issue</a> from 2015 on github which claims the solution in the provided documentation would be invalid in Symfony >= 3.</p>

<p>Now I'm just wondering - does anyone know if the linked documentation is actually out of date (which seems to be the case as it does not work for me), and how do you accomplish the same thing in Symfony 3?</p>