Are you setting restoreOriginalRequest() in your configuration ? Something like:
.form()
.loginPage("/login.xhtml")
.errorPage("/error.xhtml")
.restoreOriginalRequest()