I'm using the following config in web.xml to redirect to error pages
<error-page>
<error-code>401</error-code>
<location>/</location>
</error-page>
when 401 error occurs it is redirecting to '/' but the URI is preserved.
let's say if I'm trying to access 'localhost:8080/account' resource which needs auth, then the redirect is happening but URL is still 'localhost:8080/account'.
I was wondering how to redirect to '/' and have the url to be 'localhost:8080/'