This service is available via Telligent.Evolution.Extensibility.Apis.Get<Telligent.Evolution.Extensibility.Api.Version1.IUrl>()
and is defined in Telligent.Evolution.Platform.dll
Properties
Name | Type | Description | Default | Options |
---|---|---|---|---|
CurrentContext | PageContext | Exposes the current contextual information about the incoming url |
Methods
string Absolute(string url);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | string | Url | Required |
Return Type
string
string Adjust(string url, string queryStringAdjustment = null, string targetAdjustment = null);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | string | Url | Required | ||
queryStringAdjustment | string | Query String Adjustment | Optional | ||
targetAdjustment | string | Target Adjustment | Optional |
Return Type
string
string ApplicationEscape(string url);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | string | Url | Required |
Return Type
string
string ApplicationUnescape(string url);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | string | Url | Required |
Return Type
string
string BuildUrl(string urlName, int groupId, Dictionary<string,string> parameters = null);
Generates a relative url based on the given parameters including the group path
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
urlName | string | Url Name | Required | ||
groupId | int | Group Id | Required | ||
parameters | Dictionary<string,string> | Parameters | Optional |
Return Type
string
string BuildUrl(string urlName, Dictionary<string,string> parameters = null);
Generates a relative url based on the given parameters
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
urlName | string | Url Name | Required | ||
parameters | Dictionary<string,string> | Parameters | Optional |
Return Type
string
string ConvertQueryStringToHash(string url);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | string | Url | Required |
Return Type
string
string Decode(string text);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
text | string | Text | Required |
Return Type
string
string DecodeFileComponent(string text);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
text | string | Text | Required |
Return Type
string
string DecodePathComponent(string text);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
text | string | Text | Required |
Return Type
string
string Encode(string text);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
text | string | Text | Required |
Return Type
string
string EncodeFileComponent(string text);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
text | string | Text | Required |
Return Type
string
string EncodePathComponent(string text);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
text | string | Text | Required |
Return Type
string
bool IsSafe(string url);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | string | Url | Required |
Return Type
bool
bool IsSafe(Guid contentTypeId, string url);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
contentTypeId | Guid | Content Type Id | Required | ||
url | string | Url | Required |
Return Type
bool
SafeUrlValidation IsSafe(string url, SafeUrlOptions options);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | string | Url | Required | ||
options | SafeUrlOptions | Options | Required |
Return Type
string MakeQueryString(NameValueCollection queryStringValues);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
queryStringValues | NameValueCollection | Query String Values | Required |
Return Type
string
PageContext ParsePageContext(string localUrl);
Extracts contextual information for a given relative local Evolution url
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
localUrl | string | A local, relative Evolution url without '~' | Required |
Return Type
NameValueCollection ParseQueryString(string queryString);
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
queryString | string | Query String | Required |
Return Type
NameValueCollection