I am using spring security for authentication. authentication is working fine. but after authentication it is not redirecting to the html that have mentioned using default t
As you can see in the image, there is some kind of bad design (IMO It should always redirect to the default-target-url). When you go to the login url from a forbidden resource, it will redirect you to that URL and not going thru the default-target-url.
Just use always-use-default-target="true" and you will have the desire behavior
http://i.stack.imgur.com/fj9ou.png