• Resolved melo1551

    (@melo1551)


    In my admin panel there is a ajax function that works but it sends me to a blank page. As the ajax command will always generate a individual link I need to redirect this link using part of the URL which all of them have in common:

    (wcsop_merge_orders&wsop_sure=true).

    original link is:

    https:/mypage.com/wp-admin/edit.php?s=&post_status=all&post_type=shop_order&_wpnonce=c21456fc6c&_wp_http_referer=%2Fwp-admin%2Fedit.php%3Fpost_type%3Dshop_order%26bulk_action%3Dmarked_on-hold%26changed%3D1%26ids%3D964&action=wcsop_merge_orders&rnTemplateId=3&m=0&_product_id=&_customer_user=&paged=1&post%5B%5D=964&post%5B%5D=963&action2=wcsop_merge_orders

    as you can see the part is at the end of the link.

    How can I set up a redirection whenever a link contains this combination of characters? I tried several settings with the Plugin but I do not seem to understand how it works.

    I want it to be redirected to:

    https://mypage.com/wp-admin/edit.php?post_type=shop_order

    I would appreciate any help on this.

    • This topic was modified 3 years, 1 month ago by melo1551.
Viewing 1 replies (of 1 total)
  • Plugin Author John Godley

    (@johnny5)

    For safety the plugin won’t let you redirect wp-admin pages. It would probably be better to fix the root problem.

Viewing 1 replies (of 1 total)
  • The topic ‘Redirect ajax URL’ is closed to new replies.