Copied to clipboard

Flag this post as spam?

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

  • Viktoriia H 5 posts 85 karma points
    Oct 01, 2021 @ 11:56
    Viktoriia H

    UmbNavItem doesn't contain Link value


    I'm using UmbNav in my project and couldn't find out how to render external links (not Umbraco Content). It seems I need to use the URL property in UmbNavItem model, but it is not accessible for me. Is there any documentation how to get a Link value?

    enter image description here Thanks!

  • Aaron 42 posts 325 karma points c-trib
    Oct 01, 2021 @ 12:02

    Have you tried using the .Url() extension?

    The .Url property is depreciated.

    If you are, could you provide some example code please :)

    The documentation can be found here:

  • Viktoriia H 5 posts 85 karma points
    Oct 01, 2021 @ 12:21
    Viktoriia H

    Hi Aaron - thanks for the quick reply! The .Url() extension works like a charm! Thank you :)

Please Sign in or register to post replies

Write your reply to: