#StackBounty: #magento2.3 #adminhtml #redirect In Magento 2 after ajax success can't redirect page in admin

Bounty: 50

After ajax success can’t redirect page in admin in Magento 2

 var redirectUrl = "<?php echo $block->getBaseUrl().'admin/trackorder/shipinfo' ?>";
 $.ajax({
    url: urlLabel,
    type: "POST",
    data: {counsumerNumber:counsumerNumber,courierService:courierService},
    showLoader: true,
    done: function(data, statusText, xhr){
        var status = xhr.status;
        if(status != 200) window.location = redirectUrl;
    }
});


Get this bounty!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.