Class DomainUtilities
Provides utilities to handle domains.
Inheritance
System.Object
Namespace: Umbraco.Web.Routing
Assembly: Umbraco.Web.dll
Syntax
public static class DomainUtilities
Methods
View SourcePathRelativeToDomain(Uri, String)
Returns the part of a path relative to the uri of a domain.
Declaration
public static string PathRelativeToDomain(Uri domainUri, string path)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | domainUri | The normalized uri of the domain. |
System.String | path | The full path of the uri. |
Returns
Type | Description |
---|---|
System.String | The path part relative to the uri of the domain. |
Remarks
Eg the relative part of /foo/bar/nil
to domain example.com/foo
is /bar/nil
.