C# Class Baseline.UrlExtensions

Show file Open project: JasperFx/baseline

Public Methods

Method Description
AppendUrl ( this url, string part ) : string

Smart helper to append two url strings together. Takes care of the "/" joining for you.

ChildUrl ( this url ) : string

Removes the first segment of a Url string

MoveUp ( this relativeUrl ) : string

Slightly smarter version of ChildUrl() that handles empty url's

ParentUrl ( this url ) : string

Removes the last segment of a Url string

Method Details

AppendUrl() public static method

Smart helper to append two url strings together. Takes care of the "/" joining for you.
public static AppendUrl ( this url, string part ) : string
url this
part string
return string

ChildUrl() public static method

Removes the first segment of a Url string
public static ChildUrl ( this url ) : string
url this
return string

MoveUp() public static method

Slightly smarter version of ChildUrl() that handles empty url's
public static MoveUp ( this relativeUrl ) : string
relativeUrl this
return string

ParentUrl() public static method

Removes the last segment of a Url string
public static ParentUrl ( this url ) : string
url this
return string