title: Force browser to drop #hash from the URL when sending redirect
body: <p>I am running into an issue with a persisting part of the URL, let's call it <code>#x</code> that is used for navigation. I have an AuthenticationFilter on the server side that will redirect users to a login page. The issue is that I can't get this <code>#x</code> to go away. On the server side when I step through the Java code that does the redirect, I see the URL as <code>/login?redirectUrl=%2Fprevious%2Flocation</code>. However, on the client side this is actually <code>/login?redirectUrl=%2Fprevious%2Flocation#x</code>. I understand that this data is actually never sent to the server. My question is <strong>how do I force the server to tell the client to drop it</strong>? Do I have to switch to client-side redirects? </p>