Copied to clipboard

Flag this post as spam?

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


  • Fredrik Esseen 610 posts 906 karma points
    Oct 16, 2009 @ 16:41
    Fredrik Esseen
    0

    Getting Current URL in template

    Probably a simple question: Ive created a newsletter and want to add a link to the page so if it doesnt look to well the user can read it on the website. But how do I retreieve that in the template?

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Oct 16, 2009 @ 16:52
    Dirk De Grave
    2

    Hi froad,

     

    Might be

    <%=umbraco.library.NiceUrl(umbraco.presentation.nodeFactory.Node.GetCurrent().Id)%>

    (Haven't tried it, but should work)

     

    Hope this helps.

    Regards,

    /Dirk

  • Peder Andreasen 5 posts 25 karma points
    May 10, 2011 @ 20:26
    Peder Andreasen
    0

    This is also am option

    <%=Request.Url.AbsoluteUri %>

     

    Regards,

    Peder

     

Please Sign in or register to post replies

Write your reply to:

Draft