however I am using custom routes and IContentFinders. The GetByRoute method seems to ignore any custom IContentFinders all together
string route = "custom/dynamic/route"; // Existing page in Umbraco
IPublishedContent content = UmbracoContext.Content.GetByRoute(route);
// content is always null and IContentFinder not hit
Am I right in thinking what I am trying to do won't work as the GetByRoute method essentially goes to the cache and not through the umbraco request pipeline. If so, is there an alternative way to programmatically get content by URL or route?
Umbraco 8 IPublishedContentCache.GetByRoute ignores IContentFinder
Hey Guys,
I need to resolve content by URL, using the following works for pages that exist in Umbraco...
however I am using custom routes and IContentFinders. The GetByRoute method seems to ignore any custom IContentFinders all together
When making the request directly to umbraco for example: http://localhost/custom/dynamic/route My IContenFinder is hit and the content is resolved.
Am I right in thinking what I am trying to do won't work as the GetByRoute method essentially goes to the cache and not through the umbraco request pipeline. If so, is there an alternative way to programmatically get content by URL or route?
Thanks in advance
I am also interested in a solution for this. Did you manage to find a solution?
is working on a reply...