Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Michael 125 posts 409 karma points
    May 16, 2016 @ 10:21
    Michael
    0

    GetByRoute is not working for descendants

    Hi,

    I'm trying to find my node by url: contentRequest.RoutingContext.UmbracoContext.ContentCache.GetByRoute("/login") or "/login/"

    but it always returns null. This works only for top level node with url "/"

    Thanks, Mike

  • Michael 125 posts 409 karma points
    Sep 06, 2016 @ 10:10
    Michael
    0

    Solution:

    UmbracoContext.Current.ContentCache.GetByRoute("ParentID/route");

Please Sign in or register to post replies

Write your reply to:

Draft