Copied to clipboard

Flag this post as spam?

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


  • Keith Jackson 183 posts 552 karma points
    Mar 26, 2014 @ 18:32
    Keith Jackson
    0

    NiceUrl() vs Url() vs Url Property

    I'm upgrading a U6 site to U7 and trying to clean up some obsolete warnings.

    These advise me that NiceUrl() is obsolete and to replace it with Url(). What are the differences between what is returned using NiceUrl(), Url() and the Url Property from an IPublishedContent item?

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Mar 26, 2014 @ 18:51
    Dennis Aaen
    100

    Hi Keith,

    I found a discussion on Google Groups where the talks about the subject NiceUrl or Url, maybe this can throw some light over the differences between what is returned using NiceUrl(), Url()

    https://groups.google.com/forum/#!msg/umbraco-dev/trG0c2TbhWc/-0xm5Uz8ITwJ

    Hope this can be useful,

    /Dennis

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 26, 2014 @ 23:23
    Jan Skovgaard
    0

    Hi Keith

    In short they do the same thing but since there is no reason for having two method that do the same thing you should simply just Url().

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft