Search Results for

    Show / Hide Table of Contents
    View Source

    Class RedirectToUmbracoUrlResult

    Redirects to the current URL rendering an Umbraco page including it's query strings

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Web.Website.ActionResults
    Assembly: Umbraco.Web.Website.dll
    Syntax
    public class RedirectToUmbracoUrlResult : IKeepTempDataResult
    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 Source

    RedirectToUmbracoUrlResult(IUmbracoContext)

    Initializes a new instance of the RedirectToUmbracoUrlResult class.

    Declaration
    public RedirectToUmbracoUrlResult(IUmbracoContext umbracoContext)
    Parameters
    Type Name Description
    IUmbracoContext umbracoContext

    Methods

    View Source

    ExecuteResultAsync(ActionContext)

    Declaration
    public Task ExecuteResultAsync(ActionContext context)
    Parameters
    Type Name Description
    ActionContext context
    Returns
    Type Description
    Task
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • RedirectToUmbracoUrlResult(IUmbracoContext)
    • Methods
      • ExecuteResultAsync(ActionContext)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX