Logout redirected with default contextpath

Hi Team,

While redirect users after logout to home url (/), default context path was appended and redirected to wrong url (/site) and page was landed to page not found.

In console also, we have hst:showcontextpath flag as false.

this was the log we got before redirection:

[org.springframework.security.web.DefaultRedirectStrategy.sendRedirect():54] Redirecting to ‘/’


spring itself doesn’t know about your proxy/context stripping, so you need to make that configurable.
Some of the spring security implementations already have support for this (see for example SAMLContextProviderLB at:
some of them not so you need to come up with your own solution.