$productLink = Context::getContext()->link->getAdminLink(
'AdminProducts',
true,
['id_product' => (int) $id_product, 'viewproduct' => 1],
['id_product' => (int) $id_product, 'viewproduct' => 1]
);
You can refer this