Appointments+ - Popup after form submission

Redirect in functions is no longer working

I can't get rid of the popup after submission anymore either.

//REDIRECT APPOINTMENTS
function app_redirect( $script ){
    return str_replace("window.location.href=app_location()", "window.location.href='http://cannamed.com/patients/thank-you-for-booking-your-appointment/'", $script);
}
add_filter( 'app_footer_scripts', 'app_redirect' );

When I thought I was getting close everything seemed to change.

Please advise