magento2.3 – In Magento 2 after ajax success can’t redirect page in admin

Try this code to redirect on page after success

var redirectUrl = "<?php echo $block->getUrl("trackorder/shipinfo"); ?>";
    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.href = redirectUrl;

Just change window.location = redirectUrl; to window.location.href = redirectUrl;

and <?php echo $block->getBaseUrl().'admin/trackorder/shipinfo' ?> to <?php echo $block->getUrl("trackorder/shipinfo"); ?>