A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Found the solution. Remove the {controller} from the route registration solved the problem
RouteTable.Routes.MapContentRoute(
"listing",
"{language}/{node}/{action}/{category}/{id}",
new
{
controller = "ListingPage",
action = "Index",
category = UrlParameter.Optional,
id = UrlParameter.Optional
});
Regards,
Raja
Hi,
Based on the below topic,
https://world.episerver.com/forum/developer-forum/-Episerver-75-CMS/Thread-Container/2017/3/custom-routing-with-extra-parameters-in-action-method/
I am trying to create multiple parameters routing. The route config is below
so the url will be /listing/a/1/ or /listing/b/2
I have created the Partial router and it works. However this routing broken the BVN 404. The 404 stopped working after this routing. Basic routing didn't worked for the multiple parameters. Is there any alternative or any sample solution to achieve multiple parameters?
Regards
Raja