Copied to clipboard

Flag this post as spam?

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


  • Connie DeCinko 931 posts 1160 karma points
    Mar 30, 2011 @ 01:22
    Connie DeCinko
    0

    NiceURL and Hostnames - bug or by design?

    According to the Wiki:  "Use this (NiceURL) to return a 'Friendly URL' for a given node in the Umbraco content section. A 'Friendly URL' is the complete encoded URL excluding the domain."

    However...  if you are using Hostnames, you instead get the entire URL WITH the domain name.

    Is this a bug or by design? as it causes some of my code and packages to break.

     

  • Laurent Lequenne 123 posts 248 karma points
    Mar 30, 2011 @ 10:17
    Laurent Lequenne
    1

    In the umbracoSettings.Config you need to change the setting <useDomainPrefixes>  to false. This will enables you to work with relative paths. If you are running in a multidomain scenario, it won't work, you have to use the <useDomainPrefixes> with true.

     

  • Connie DeCinko 931 posts 1160 karma points
    Mar 30, 2011 @ 15:29
    Connie DeCinko
    0

    So this is by design and there is a "bug" in the Wiki description of NiceURL?

     

  • Laurent Lequenne 123 posts 248 karma points
    Mar 30, 2011 @ 16:07
    Laurent Lequenne
    0

    Yeah one of those annoying things ... that makes thing more complex than it should be ! take makes umbraco not as user friendly as it could be ! Certainly if no answers are given to any problem :-)

  • Markus 33 posts 58 karma points
    Apr 20, 2011 @ 11:32
    Markus
    1

    I corrected the "bug" in the wiki description of NiceUrl and added a note concerning the impact of useDomainPrefixes: http://our.umbraco.org/wiki/reference/umbracolibrary/niceurl

Please Sign in or register to post replies

Write your reply to:

Draft