Skip to content

Commit

Permalink
try to workaround mojarra encodeRedirectURL bug
Browse files Browse the repository at this point in the history
  • Loading branch information
tandraschko committed Feb 28, 2024
1 parent 5c762b6 commit b150f0a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static String constructRequestUrl(FacesContext facesContext, ExternalCont

// let's reuse the logic from MyFaces instead
HttpServletResponse servletResponse = (HttpServletResponse) externalContext.getResponse();
servletResponse.encodeRedirectURL(encodeURL(url, facesContext, servletResponse.getCharacterEncoding()));
url = servletResponse.encodeRedirectURL(encodeURL(url, facesContext, servletResponse.getCharacterEncoding()));

return url;
}
Expand Down

0 comments on commit b150f0a

Please sign in to comment.