Class RedirectToUmbracoUrlResult
Redirects to the current URL rendering an Umbraco page including it's query strings
Inheritance
object
Namespace: Umbraco.Cms.Web.Website.ActionResults
Assembly: Umbraco.Web.Website.dll
Syntax
public class RedirectToUmbracoUrlResult
Remarks
This is useful if you need to redirect to the current page but the current page is actually a rewritten URL normally done with something like Server.Transfer. It is also handy if you want to persist the query strings.
Constructors
View SourceRedirectToUmbracoUrlResult(IUmbracoContext)
Initializes a new instance of the RedirectToUmbracoUrlResult class.
Declaration
public RedirectToUmbracoUrlResult(IUmbracoContext umbracoContext)
Parameters
| Type | Name | Description |
|---|---|---|
| IUmbracoContext | umbracoContext |
Methods
View SourceExecuteResultAsync(ActionContext)
Executes the result operation of the action method asynchronously. This method is called by MVC to process the result of an action method.
Declaration
public Task ExecuteResultAsync(ActionContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| ActionContext | context | The context in which the result is executed. The context information includes information about the action that was executed and request information. |
Returns
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous execute operation. |