diff --git a/http/form/src/main/java/org/wildfly/security/http/form/FormAuthenticationMechanism.java b/http/form/src/main/java/org/wildfly/security/http/form/FormAuthenticationMechanism.java index 828f1e84dc5..74c49933af9 100644 --- a/http/form/src/main/java/org/wildfly/security/http/form/FormAuthenticationMechanism.java +++ b/http/form/src/main/java/org/wildfly/security/http/form/FormAuthenticationMechanism.java @@ -340,7 +340,7 @@ private void sendLogin(HttpServerRequest request, HttpServerResponse response) t if (appendPort(scheme, port)) { sb.append(':').append(port); } - sb.append(requestURI.getPath()); + sb.append(requestURI.getRawPath()); if(requestURI.getRawQuery() != null) { sb.append("?"); sb.append(requestURI.getRawQuery());