How to get auto-redirect or redirect button in customized passowrd reset page?

We are using New universal login experience and we have “Customize Password Reset Page” turned on. There is no redirect after passowrd is set nor is there any button that would lead to the application.
When customization of the passowrd reset page is turned off, the button “Back to Application X” appears.
What is a correct way to add the redirect to the page while keeping the customization turned on?