Quantcast
Channel: Ryan Bailey Development
Viewing all articles
Browse latest Browse all 287

Sitecore GetItemUrl method is leaving off the http or https

$
0
0
I had a Lucene computed index field which was indexing item URLs on a multi site environment. The URLs being returned by LinkManager.GetItemUrl were coming back in an unexpected format: ://myUrl instead of http://myUrl. This was because the scheme element was missing off of the site definiton:
<site hostName="MySite" name="mysite"scheme="http" ... />
Aka the scheme element needs to be present otherwise the link manager will not include the protocol.

Viewing all articles
Browse latest Browse all 287

Trending Articles