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.
search
AI OnAI Off
Hi Optimizely team,
I'm trying implement custom PartialRouter follow this Developer guide - Routing and seem it's not working.
I created CustomPartialRouter as bellow:
Registed in DI and called UseTemplate as bellow
Updated StartPageController to pass string parameter named "id" as bellow
And when debug, I saw custom PartialRouter setted routesValues before go to StartPageController, but parameter still empty as image bellow:
Did you find a solution for the Partial router not working ?
I have the exact same issue where I add a value to the RouteValues and can see them in Partial router but as soon as I return the content and come to the controller that added routeValue is not there.
Not found any solution to make Partial router work. So I registered all custom route via Startup like @Luc's comment.
Using custom routes in Startup makes the Parital Router useless. For me this is a issue when upgrading from CMS 11 to 12.
I'll ask around a bit and let you know if I find a soultion to this :)
I got it it to work. You can see my comment on the post.
Hope it works for you as well :)