Hi,
I am just trying to set new SEO frindly URL for product page that run diferent action
I registred my new route at GenericUrlRouteProvider
routes.MapLocalizedRoute("ProductAmp",
"amp/{generic_se_name}",// also tried "amp/{SeName}"
new { controller = "Product", action = "ProductDetailsAmp", },
new[] { "Nop.Web.Controllers" });
but getting error
The parameters dictionary contains a null entry for parameter 'productId' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ActionResult ProductDetailsAmp(Int32)' in 'Nop.Web.Controllers.ProductController'.
because productId was not resolved.
I debugged
... GetRouteData(HttpContextBase httpContext)
RouteData data = base.GetRouteData(httpContext);
if (data != null && DataSettingsHelper.DatabaseIsInstalled())
and get
data==null this means gneric Id resolving was skipped here.
any ideas how to put this king of urls?