This service is available via Telligent.Evolution.Extensibility.Apis.Get<Telligent.Evolution.Extensibility.Api.Version1.IUrlRedirects>()
and is defined in Telligent.Evolution.Platform.dll
Methods
UrlRedirect Create(string oldUrl, string newUrl, bool isPrefix, UrlRedirectCreateOptions options = null);
Creates a url redirect from an old page to a new one
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
oldUrl | string | The outdated url that no longer is valid. | Required | ||
newUrl | string | The new url that the request should be redirected to. | Required | ||
isPrefix | bool | Flag specifying whether the url is a full url or just a prefix (eg for a group or application) | Required | ||
options | UrlRedirectCreateOptions | Create options | Optional |
Return Type
AdditionalInfo Delete(string url, bool isPrefix, UrlRedirectDeleteOptions options = null);
Removes a url redirect
Parameters
Name | Type | Description | Required | Default | Options |
---|---|---|---|---|---|
url | string | The outdated url to be removed | Required | ||
isPrefix | bool | Flag specifying whether the url is a full url or just a prefix (eg for a group or application) | Required | ||
options | UrlRedirectDeleteOptions | Delete options | Optional |