Copied to clipboard

Flag this post as spam?

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


  • JoskerVemeulen 68 posts 262 karma points
    May 08, 2019 @ 13:10
    JoskerVemeulen
    0

    Get url based on Alias

    Hi,

    I can get a page url by using

    var link1Url = Umbraco.Content(1094).Url;
    

    Is it possible to use alias? And how? ;) For example:

    var link1Url = Umbraco.Content("Page1").Url;
    

    This does not work btw .

    Thanks!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies