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 url as required:
function app_redirect( $script ){
return str_replace("window.location.href=app_location()", "'_blank' href=''", $script);
add_filter( 'app_footer_scripts', 'app_redirect' );

Thanks for the help and the great job!