Cancel button on the "unsubscribe mailing" form doesn't work as expected.
Overview
Hello,
The footer of a mailing (civicrm/admin/component?action=update&id=2) includes the token {action.optOutUrl}, but, if you create a new footer with the token {action.unsubscribeUrl} and send a mailing, when you click to unsubscribe from the group, a mailing is resent allowing you to resubscribe. In this last form "civicrm/mailing/resubscribe" if you click on the cancel button, you resubscribe.
Both the "next" and "cancel" buttons work the same way.
Reproduction steps
- Add contact to group
- Create/edit footer on: "civicrm/admin/component", add {action.unsubscribeUrl}
- Send mailing test with new footer
- Unsubscribe with token email
- Access to new mail Resubscribe and click cancel button (Now you are rejoined to group)
Current behaviour
- When I click on the “here” link in the re-subscribe confirmation and then on button “Cancel”, we still get re-subscribed.
- The "next" and "cancel" buttons work the same way.
Expected behaviour
- Do nothing with cancel button (Cancel action)
Environment information
- __CiviCRM: 5.63
- __PHP: 7.4 / 8.1
- __CMS: Drupal