Redirects.checkURL (Method)

Given the original URL, returns a structure with the redirect information.

Returns:

Redirects_CheckURL_Result (struct)

Each row of the returned query results has the following fields:

Field Name Type Description
Action PlainText_50 The action that caused the permanent redirect entry or empty string.
CurrentURL PageURL_Empty The URL that the user will be redirected to or empty string if no redirect.
PageID PageID_0 The ID of the page that will be redirected to or 0 if no redirect.

Arguments:

Name Type Required Description
originalURL ServerRelativeURL Required The server relative URL of the original URL that no longer exists.

Context:

License Requirements (none)
Permission Requirements (none)
Deny Context (none)
Require Context (none)
Author Lock (not required)
Transaction Logging Transaction logging is disabled for this method
Customization This method may be customized at the site level

Error Codes:

None

Notes:

None