Frontend form: redirection parameter not working with external domains

Support MB Frontend Submission Frontend form: redirection parameter not working with external domains

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #35651
    RodrigoRodrigo
    Participant

    Hi,

    I found a bug in the frontend form.

    If I add any external domain in the redirect parameter (e.g: https://www.google.com) of the shortcode, I'm redirected to the WordPress login page (wp-admin) after submission.

    The redirect parameter only works with internal URLs.

    But if I add the ajax="true" parameter to the shortcode, the redirection works just fine with external domains.

    Example:

    [mb_frontend_form post_fields="title,content" ajax="true" redirect="https://www.google.com"]

    #35653
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Thanks for your feedback.

    I've escalated this issue to the development team to fix it in the next update. You can use the filter hook to customize the redirect URL, please follow this documentation
    https://docs.metabox.io/extensions/mb-frontend-submission/#hooks-1

    #35659
    RodrigoRodrigo
    Participant

    Unfortunately, using the filter rwmb_frontend_redirect didn't solve the issue.

    I'll wait for the fix, thank you.

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