Copied to clipboard

Flag this post as spam?

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


  • John Churchley 27 posts 172 karma points
    Jan 19, 2014 @ 17:36
    John Churchley
    0

    Getting the Url with Domain

    Hi,

    I was wondering if there was a new method to get the Url with Domain (for use on a site map)? Both methods I've used previously appear to be obsolete. 

    .UrlWithDomain()

    .NiceUrlWithDomain()

     

  • John Churchley 27 posts 172 karma points
    Jan 19, 2014 @ 18:07
    John Churchley
    103

    Solution: Http://@HttpContext.Current.Request.Url.Host@node.Url

    Hope this helps the next person!

  • Fabio Milheiro 74 posts 136 karma points
    Apr 06, 2014 @ 01:52
    Fabio Milheiro
    0

    The URL doesn't link anywhere? Can you help here? Thanks

  • jake williamson 207 posts 873 karma points
    Nov 13, 2015 @ 16:23
    jake williamson
    5

    just in case anyone stumbles across this post...

    the reply above was:

    Http://@HttpContext.Current.Request.Url.Host@node.Url
    

    or you can use the extension method:

    node.UrlAbsolute();
    

    hope that helps!

  • 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