When changing my product display templates URL from variant to product I cant reach the product page. In the product controller the variant object is null.
[HttpGet]
public ActionResult ProductWithVariants(CategoryModel categoryModel, Variant variant)
{
var productPageModel = _productPageViewModelBuilder.Build(categoryModel, variant);
return View(productPageModel);
}
How am I supposed to change from using the variants URL to products URL in the website?
Litium version: 7.3.1