: Use Sean's answer, but I would use LinkManager to build the entire url: var options = LinkManager.GetDefaultUrlOptions(); options.AlwaysIncludeServerUrl = true; canonicalLiteral.Text = LinkManager.GetItemUrl(global::Sitecore.Links.Link
Use Sean's answer, but I would use LinkManager to build the entire url:
var options = LinkManager.GetDefaultUrlOptions();
options.AlwaysIncludeServerUrl = true;
canonicalLiteral.Text = LinkManager.GetItemUrl(global::Sitecore.Links.LinkManager.GetItemUrl(targetItem));
More posts by @Candy875
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.