Copied to clipboard

Flag this post as spam?

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


  • Phil 1 post 21 karma points
    Jun 14, 2011 @ 15:25
    Phil
    0

    niceurl produces wrong url

    For some reason ive just published a new page and the links generatd to the page from xslt files are incorrect. ie

    <xsl:variable name="n" select="umbraco.library:GetXmlNodeById(8608)" />

    <a href="{umbraco.library:NiceUrl($n/@id)}">s</a>

     

    this sends me to /products.aspx when it needs to go to /news/must-have-lip-cream-coming-soon.aspx. when i do this:

    <xsl:variable name="n" select="umbraco.library:GetXmlNodeById(8608)" />

    <xsl:value-of select="umbraco.library:NiceUrl($n/@id)" /> 

    the link written out is correct. I JUST DONT UNDERSTAND!? Can anyone help?

     

  • Lee Kelleher 3945 posts 15163 karma points MVP 10x admin c-trib
    Jun 14, 2011 @ 22:02
    Lee Kelleher
    0

    Hi Phil,

    Seems very strange!  Could you try this?

    <a href="{umbraco.library:NiceUrl(8608)}">link</a>

    I'm hoping that it returns the "/news/must-have-lip-cream-coming-soon.aspx" URL.

    It's worth checking if you have another property on the document called "umbracoAlias" - as that might have been set to "products"? - but that's just a wild guess!

    Cheers, Lee.

  • 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