
RichR.34741 (Customer) asked a question.
I'm testing the reset password process on our account, and I'm experiencing the following:
1. Click "Need help signing in?"
2. Click "Forgot password?"
3. Enter email address
4. Click "Reset via Email"
5. In the "Account password reset" email click the "Reset Password" button
6. Fill in the new password fields
7. Click the "Reset Password" button
** I am then redirected to a page that causes a 403 error which is then displayed in the okta error page.
My question is: Can I configure where the "Reset Password" button in step 7 sends the browser? I would like it to go to our main app home page instead of where it is attempting and failing to redirect now.

After going back and forth with support for a few days we determined that there is built-in way to customize the destination of the Reset Password button. Instead I had to put some custom javascript in the Okta log in page (from the Okta dashboard: Settings | Customization | Custom Sign In - then edit the HTML). I changed the success function provided in the original in-line Javascript on line 29 from just passing in the OktaUtil.completeLogin function to a new function that receives response as a parameter, calls OktaUtil.completeLogin passing response, and then, if the widget is currently in Reset Password mode and response.status is 'SUCCESS', it sets the window location href to the URL of our app that we need to redirect to.
Note that I tried to post my code here, but the page wouldn't allow it. It said I had some illegal html in my post.
Upside:
The okta sign in page now redirects to our app after resetting the password.
Downside:
The sign in page does not have time to start a user session after resetting the password. If I used a timeout or something the page would redirect to the okta dashboard again, so I couldn't wait for the session to start. Therefore, after redirecting to our app the user is sent to the sign in page again where they have to enter their username and - now for the third time - their password.
Another downside is that I could not find a documented way to determine what mode the sign in widget is in. There were several ways to tell based on the DOM, but in the end I just went with using the current path in window.location.href. None of these methods are documented though, so in theory any of them could break at any time.
Hopefully this solution helps someone. If you need this feature too, go to the feature request page and upvote:
https://support.okta.com/help/s/idea/0870Z000000JxZ5QAK/detail