Mobile app version of vmapp.org
Login or Join
Candy875

: 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

@Candy875

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));

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Candy875

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme