I have the following code in two xslt files, one for the main menu and the other for sub-menu's: <a href="{umbraco.library:NiceUrl($node/@id)}"> <xsl:value-of select="$node/@nodeName" /> </a>
Now I have the following node structure: [Root] [Root]/[Website] [Root]/[Website]/[Home] [Root]/[Website]/[Home]/[Home]
The result for the sub menu is: website/home/home.aspx But strangely enough the one for the main menu is: website/home.aspx
NiceUrl results
Hiyah,
I have the following code in two xslt files, one for the main menu and the other for sub-menu's:
<a href="{umbraco.library:NiceUrl($node/@id)}">
<xsl:value-of select="$node/@nodeName" />
</a>
Now I have the following node structure:
[Root]
[Root]/[Website]
[Root]/[Website]/[Home]
[Root]/[Website]/[Home]/[Home]
The result for the sub menu is:
website/home/home.aspx
But strangely enough the one for the main menu is:
website/home.aspx
Why?!
Never mind the above post, I know what is going on and the results are correct.
However, I have a umbracoRedirect property on the first [Home] which should redirect to [Home]/[Home] and this appears not to be working in all cases.
... Aaand fixed by recreating and republishing some nodes. Seems like Umbraco wasn't handling them very well.
is working on a reply...