title: Symfony2 login form redirects to home page instead of redirecting to referer URL
body: <p>I got a Symfony2 project set up with a form-based login. </p>
  
  <p>This is what my <code>security.yml</code> configuration looks like:</p>
  
  <pre><code>firewalls:
      login:
          pattern:  ^/login$
          security: false
  
      secured_area:
          pattern:    ^/
          anonymous: ~
          form_login:
              login_path:  /login
              check_path:  /login_check
              default_target_path: /home
          logout:
              path:   /logout
              target: /
  
  access_control:
      - { path: ^/admin, roles: ROLE_ADMIN }             
      - { path: ^/login, access: "isAnonymous()" }
      - { path: ^/login_check, access: "isAnonymous()" }
      - { path: ^/register, access: "isAnonymous()" }
  </code></pre>
  
  <p>Generally, logging in and out works just fine, but when logging in, I'm getting redirected to <code>/</code> instead of the requested URL (referer). This happens regardless of whether the <code>use_referer</code> is set to <code>true</code> or <code>false</code>. </p>
  
  <p>When setting <code>always_use_default_target_path</code> to <code>true</code>, I get redirected to the default path (<code>/home</code>) instead of <code>/</code>, which does make sense. </p>
  
  <p>Can anybody give me a hint on why I'm being redirected to <code>/</code> instead of the referer URL?</p>
  
  <p>Thanks!</p>