You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a list of articles to be retrieved as I found out that for some of articles, url is mydomain.com/articles/article1 but for some other is like /sitecore/content/home/articles/article1
So I changed
return LinkManager.GetItemUrl(item);
With
return LinkManager.GetItemUrl(item, UrlOptions.DefaultOptions);
The text was updated successfully, but these errors were encountered:
I had a list of articles to be retrieved as I found out that for some of articles, url is mydomain.com/articles/article1 but for some other is like /sitecore/content/home/articles/article1
So I changed
return LinkManager.GetItemUrl(item);
With
return LinkManager.GetItemUrl(item, UrlOptions.DefaultOptions);
The text was updated successfully, but these errors were encountered: