Get the full URL of the doc

Novice User asked on September 21, 2018 16:22

I want to add a link to a page in a webpart. I got the nodealiaspath. How can I use this to get the full path of the document.

URLHelper.ResolveUrl(my.NodeAliasPath)is not working.

Correct Answer

Brenden Kehren answered on September 21, 2018 16:28

Use the Helper Method:

URLHelper.GetAbsoluteUrl("/relative/url")

3 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.