SPUtility.GetUrlDirectory method
SharePoint 2013
Returns the directory-path part of the URL.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Parameters
- url
- Type: System.String
The URL path.
Returns the directory-path part of the URL.