MB Frontend Form Shortcode - Redirect Param is Broken?

Support MB Frontend Submission MB Frontend Form Shortcode - Redirect Param is Broken?Resolved

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #48591
    CodogCodog
    Participant

    Hi Peter,
    It was recently brought to my attention that the redirect="'.$redirect_url.'" parameter on the frontend submission form is broken? I have confirmed this on production, staging and local development sites. I am using the very latest WP + MB Plugin + AIO plugin.

    To re-create the issue
    =======================

    Add the following shortcode with a redirect param to a page template:

    
    <?php
    $redirect_url = esc_url( home_url( '/some-page/' ) );
    echo do_shortcode('[mb_frontend_form id="contact-page" ajax="false" redirect="'.$redirect_url.'"]');
    ?>
    

    After successful submission of the form you get the "White Screen of Death!".

    I can confirm this parameter has been working fine for sometime without error, until recently.

    I see nothing in my debug.log or browser console relating to this issue?

    Can you confirm this at your end?

    Cheers

    Leo

    #48597
    PeterPeter
    Moderator

    Hello Leo,

    Thanks for reaching out.

    I use your code to submit a frontend form, it redirects me to the custom page as well after submitting the form without any issues. Can you please try this again with a clean site?

    #48599
    CodogCodog
    Participant

    Hi Peter,
    yeah sure.... probably should have done that first!

    Will get back to you shortly.

    Cheers

    Leo

    #48601
    CodogCodog
    Participant

    Apologies Peter,
    you are correct! On a clean install it works fine.

    Cheers

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.