In Symfony2 how do I redirect within a Controller to a URL with an anchor tag/hash
In Symfony 3.2 you can do this:
// generating a URL with a fragment (/settings#password)$this->redirectToRoute('user_settings', ['_fragment' => 'password']);
See https://symfony.com/blog/new-in-symfony-3-2-routing-improvements