Results 1 to 2 of 2

Thread: Login targets, how do i get the target url to preserve the data after the # sign?

Hybrid View

  1. #1
    Join Date
    Apr 2011
    Posts
    12

    Smile Login targets, how do i get the target url to preserve the data after the # sign?

    When i do "http://something/view#/page/mystuff" and successfully login. The target url is "http://something/view". How do i get the target url to preserve the data after the # sign.

    My spring config for login:

    <form-login login-page='/login' default-target-url='/view' always-use-default-target='false' authentication-failure-url="/login?authfailed=true"/>

  2. #2
    Join Date
    Jan 2008
    Posts
    1,834

    Default

    Browsers do not send the the fragment portion of the URL to the server, so there is not really anything Spring Security can do on its own. A search returns a few ways of this with javascript.
    Rob Winch
    Twitter @rob_winch
    Spring Security Lead
    Spring by Pivotal

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •