Appointment+ Redirect to custom URL after cancelling appointment via mail link

Dear support,
Is it possible to add to functions.php a custom function that redirects users after clicling to appointment cancellation link in mail to a custom url?

I know that there is a custom function to make a similar thing after booking an appointment
How can I redirect a user after a confirmed appointment to a thank you page when payment is not required?
Add these codes inside functions.php and modify the example.com url as required:
function app_redirect( $script ){
return str_replace("window.location.href=app_location()", "window.location.target='_blank' href='http://example.com'", $script);
}
add_filter( 'app_footer_scripts', 'app_redirect' );

Thanks for the help and the great job!
Riccardo