Hi,
So I’m currently upgrading a project from Umbraco 7 to Umbraco 13, and I’m having trouble integrating custom routes with Umbraco content nodes.
I’ve defined a custom route in Program.cs and a controller that extends UmbracoPageController, but I keep encountering "No UmbracoRouteValues feature was found in the HttpContext" when trying to access my custom routes. And when debugging, i can see that the routes aren't even hitting my breakpoints. I've also tried following the docs:
https://docs.umbraco.com/umbraco-cms/reference/routing/custom-routes
But i always seem to be running into the same error.
I can however reach the routes by extending with just "Controller" instead of UmbracoPageController. But then i obviously can't retrieve any publishedcontent, right?
In the Umbraco 7 project the routes were setup with UmbracoVirtualNodeByIdRouteHandler(nodeid). How does that translate in Umbraco 13?
Any help is appreciated, Thanks!