Try our conversational search powered by Generative AI!
AI OnAI Off
Hi Patrick,
You have probably solved your problem by now, if you havent, try adding this:
ControllerContext.RequestContext.RouteData.DataTokens[RoutingConstants.NodeKey] = errorPage.ContentLink;
Regards,
Robert
Hi all,
I'm trying to implement a localizable errorpage using the tutorial of Karoline Klever, and this seems to be working okay-ish. For some reason, however, I am getting back null when I try to use the function public static ContentReference GetContentLink(this RequestContext reqContext) from EPiServer.Web.Routing.RequestContextExtension. This means the whole site still fails to render.
As said in the linked tutorial, I did set
But that doesn't seem to be enough for EPiServer 7.5 (we're using EPiServer 7.6.3). What else do I need to do to make this work properly?
Regards,
PatrickBregman