my store works good but sometime when I click on the Checkout button then it moves me to 
http://xyz/checkout/noroutes and them I came back to my homepage but when I click on other checkout button which is in the minicart then checkout page collapse and shows like
enter image description here 
what is the issue n how can I sort this??
1 Answer 1
As you have using phtml and want to get checkout page, then below code
location.href='<?= $block->escapeJs($block->getUrl("checkout"));?>'
Instead of
location.href='https:/'+'/'+location.hostname+'/checkout/#shipping'
- 
 But Sir I'm still confused... the checkout page which is collapsed with step one n step 2 is this is the reason or that error might come from somewhere elseAsad Khan– Asad Khan2019年12月05日 12:11:29 +00:00Commented Dec 5, 2019 at 12:11
app/design/frontend/Ecomwares/wokiee/Ecomwares_Wokiee/templates/html/header.phtml