Completing the common user self-service Forgot Password flow in OpenAM 13 results in the goto parameter being lost when clicking the "Return to Login Page" at the end.
To reproduce current behaviour:
1). OpenAM 13 > configure "User Self Service" > Forgotten Password enabled and KBA enabled. Create a test user and set a KBA response.
3). Click the Forgot Password link and follow the steps to reset the password.
4). When the "Your password has been successfully reset" page appears click on the "Return to Login Page" link. Note that the goto is now no longer present.
The "Return to Login Page" link should contain the preserved goto parameter.