BUTTON WITH ACTION “REDIRECT TO PAGE IN THIS APPLICATION” AND DYNAMICS ACTIONS

good morning
I migrated an Apex application from “BLEU-LIGNT” theme to “universal theme”, and compatibility mode from 4.1 to 19.2/20.1/20.2.
I fixed the javascript errors and other errors but I have an error that I can’t seem to fix: I have buttons in my application that have dynamic actions (to validate data) and inside there are apex.da.cancelEvent.call(this); (so the execution must stop) but in my application, the execution continues and the button redirects to the designated page.
I don’t know how to correct the situation.
thank you

I changed the button action to ‘defined by dynamic action’ and added a ‘true dynamic action’ with the PLSQL code APEX_UTIL.REDIRECT_URL BUT IT DOESN’T WORK