How to get backend Url in Magento 2?

You can get Magento2 backend URL by just below way,

We have passed Sales/order/view action with query string as param1 in URL.

Get URL from an adminhtml template or PHP file,
echo $this->getBackendUrl();

Leave a Reply

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