Zend certified PHP/Magento developer

Magento 2.4.2 admin category URL redirect admin dashboard

Admin category URL link redirect admin dashboard issue how to fix this issue

Current URL: Category

https://test.cm/mv2/admin/catalog/category/edit/id/12/key/a7294ff98a7d8ff0eb16dbf92bd5ffae4da9620da389376dff80aa82e4d42b60/

Real category URL

https://test.com/mv2/admin/catalog/category/edit/key/30dcd45cded283314a2410b81138a716658363d538381032f0bb16e3f66d14d0/id/12/

 public function getCategoryEditUrl()
{ 
    $category=$this->_registry->registry('current_category');
    return $this->backendUrl->getUrl('catalog/category/edit', ['id' => $category->getId()]);
} 

above code get

https://test.cm/mv2/admin/catalog/category/edit/id/12/key/a7294ff98a7d8ff0eb16dbf92bd5ffae4da9620da389376dff80aa82e4d42b60/

this URL but real URL this

https://test.com/mv2/admin/catalog/category/edit/key/30dcd45cded283314a2410b81138a716658363d538381032f0bb16e3f66d14d0/id/12/

advance thanks thanks for the help.