Copied to clipboard

Flag this post as spam?

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


  • Bogdan 250 posts 427 karma points
    Nov 19, 2009 @ 15:34
    Bogdan
    0

    get the absolute path of the page

    Hello,

    is it possible to get the absolute path of a page from xslt? For example, for a page like http://www.website.com/page.aspx how can I get the http://www.website.com/ part of the url?

     

    Thank you!

  • dandrayne 1138 posts 2262 karma points
    Nov 19, 2009 @ 15:39
    dandrayne
    0
    <xsl:value-of select="umbraco.library:RequestServerVariables('SERVER_NAME')"/>

    Will do it

    <xsl:text>http://</xsl:text>
    <xsl:value-of select="umbraco.library:RequestServerVariables('SERVER_NAME')"/>

    Dan

  • Bogdan 250 posts 427 karma points
    Nov 19, 2009 @ 15:42
    Bogdan
    0

    Yes, that's it! Thank you!

  • 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