On 8/16/2023 at 2:39 PM, Butch0071 said:so i am in Presta 8 and I try:
$url = $link->getAdminLink('AdminProducts', true, array( 'route' => 'admin_product_catalog', 'id' => $productID ));but my link is like /admincatalog/index.php/sell/catalog/products?id=2&token=TOKEN (doesn't work)
but it should be like: /admincatalog/index.php/sell/catalog/products/2?_token=TOKEN (work)
where 2 is productID
The reason why your first link doesn't work is because the id parameter is not in the correct format. The id parameter should be a number, but in your first link it is a string.