Multi record Profile forms not saving and redirecting on "Add New Record".
Overview
Multi record Profile forms are no longer respecting the "Redirect URL" for the Profile:-
Reproduction steps
- Under "Administer/Custom Data and Screens/Display Preferences" deselect "Enable Popup Forms".
- Create a multi record custom data group and add a field.
- Create a Profile which exposes these fields as a standalone form, setting the "Redirect URL" to be a valid URL.
- Embed this Profile in a WordPress page using a shortcode, e.g.: [civicrm component="profile" gid="16" mode="edit" hijack="0"]
- View the Page and click "Add new record", enter some valid data and click "Submit button.
Current behaviour
Form data is not saved and user is redirected to /civicrm/profile/edit which results in a blank WordPress page.
Expected behaviour
Form data is saved and user is redirected to the Redirect URL.
Environment information
CiviCRM 5.61.2 WordPress 6.2
Comments
Anything else you would like the reviewer to note.