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?
I founda 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()
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?
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
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
is working on a reply...