View Source
Class RedirectUrlManagementController
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
[PluginController("UmbracoApi")]
public class RedirectUrlManagementController : UmbracoAuthorizedApiController, IDiscoverable
Constructors
View Source
RedirectUrlManagementController(ILogger)
Declaration
public RedirectUrlManagementController(ILogger logger)
Parameters
Type |
Name |
Description |
ILogger |
logger |
|
Methods
View Source
DeleteRedirectUrl(Guid)
Declaration
public IHttpActionResult DeleteRedirectUrl(Guid id)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
Returns
Type |
Description |
IHttpActionResult |
|
View Source
GetEnableState()
Returns true/false of whether redirect tracking is enabled or not
Declaration
public IHttpActionResult GetEnableState()
Returns
Type |
Description |
IHttpActionResult |
|
View Source
RedirectUrlsForContentItem(String)
This lists the RedirectUrls for a particular content item
Do we need to consider paging here?
Declaration
public RedirectUrlSearchResult RedirectUrlsForContentItem(string contentUdi)
Parameters
Type |
Name |
Description |
System.String |
contentUdi |
Udi of content item to retrieve RedirectUrls for
|
Returns
View Source
SearchRedirectUrls(String, Int32, Int32)
Declaration
public RedirectUrlSearchResult SearchRedirectUrls(string searchTerm, int page = 0, int pageSize = 10)
Parameters
Type |
Name |
Description |
System.String |
searchTerm |
|
System.Int32 |
page |
|
System.Int32 |
pageSize |
|
Returns
View Source
ToggleUrlTracker(Boolean)
Declaration
public IHttpActionResult ToggleUrlTracker(bool disable)
Parameters
Type |
Name |
Description |
System.Boolean |
disable |
|
Returns
Type |
Description |
IHttpActionResult |
|