Use replacePath() instead of path()

This commit is contained in:
Robert Dey 2023-03-30 12:04:10 +02:00 committed by Pedro Igor
parent 4df73714e0
commit 044aca0863

View file

@ -314,7 +314,7 @@ public class FreeMarkerLoginFormsProvider implements LoginFormsProvider {
*/
private UriBuilder getTotpUriBuilder() {
return uriInfo.getBaseUriBuilder()
.path(uriInfo.getRequestUri().getPath())
.replacePath(uriInfo.getRequestUri().getPath())
.replaceQuery(uriInfo.getRequestUri().getQuery());
}