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!

Please Sign in or register to post replies

Write your reply to:

Draft