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 608e55a62ee..bb336730b63 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 @@ -337,7 +337,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());