Copied to clipboard

Flag this post as spam?

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


  • Ricardo 24 posts 56 karma points
    Feb 18, 2011 @ 17:03
    Ricardo
    0

    Umbraco incorrect 'Link to document' when setting hostname

    Basically defined a domain (Manage hostnames option) for Node1 and have Umbraco tree structure

        Content

             + en

                   + Node1

                            + Subnode1

                            + Subnode2

                   + Node2

             + es

                   + Node3

                           

     

    When check ‘Subnode1’ properties have that ‘Link to document’ and ‘Alternative Links’ path are inconsistent:

                Link to document: /Node1/subnode1.aspx

                Alternative Links: http://www.domain.com/subnode1.aspx

     

    I would like to get rid of the folder ‘/Node1/’ in ‘Link to document’, that is returned in NiceUrl and is messing my Url links on pages.

    I would like to only have:

                Link to document: /subnode1.aspx

                Alternative Links: http://www.domain.com/subnode1.aspx

     

    Tried to follow the suggestions in

    http://our.umbraco.org/forum/using/ui-questions/3505-Change-site-root-node,-NiceUrl-doesnt-change

    and in

    http://forum.umbraco.org/yaf_postst9118_Hostnames-and-Links.aspx

     

    but no luck the only thing I get is:

    Page not found

                umbraco tried this to match it using this xpath query'/domainprefixes-are-used-so-i-do-not-work')

    This page can be replaced with a custom 404 page

    Lets see if I receive more help that in my last question, friendly Umbraco people :)

    Thanks

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 18, 2011 @ 19:02
    Jan Skovgaard
    0

    Hi Ricardo

    Have you tried using the umbracoUrlName alias? If I understand your issue correctly I think this could be the soluion for you.

    Try reading a bit about it here: http://our.umbraco.org/wiki/reference/umbraco-best-practices/umbracourlname

    Hope this heps.

    /Jan

  • Ricardo 24 posts 56 karma points
    Feb 19, 2011 @ 17:56
    Ricardo
    0

    Hi Jan,

    Thanks for the suggestion but it did not quite do the trick.

    I added the 'umbracoUrlName' property to Node1 but did not know what exactly put in it, since I need to put something to 'activate' it.

    Tried in Node1 with '/' but this gave me for this node:

                Link to document: /.aspx

                Alternative Links: http://www.domain.com

    that is, no name but .aspx and for Subnode:

                Link to document: //subnode1.aspx

                Alternative Links: http://www.domain.comsubnode1.aspx

     

    that is 2 slashes, and in 'Alternative Link' no slash.

     

    umbraco.library.NiceUrl() return for the Subnode1 -> http://subnode1.aspx instead of http://www.domain.com/subnode1.aspx

     

    Tried to put a 'space' in the property but this throws an exception.

    Is there any special character can be used to remove completely the node name/page?

    Any other suggestion?

    Thanks

  • 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