SPUtility.GetServerRelativeUrlFromPrefixedUrl Method
SharePoint 2010
Converts a URL prefixed with "~site/" or "~sitecollection/" into a server-relative URL.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Parameters
- prefixedUrl
- Type: System.String
The prefixed URL.