PageModel.LocalRedirect(String) PageModel.LocalRedirect(String) PageModel.LocalRedirect(String) Method

Definition

Creates a LocalRedirectResult object that redirects (Status302Found) to the specified local localUrl.

public virtual Microsoft.AspNetCore.Mvc.LocalRedirectResult LocalRedirect (string localUrl);
abstract member LocalRedirect : string -> Microsoft.AspNetCore.Mvc.LocalRedirectResult
override this.LocalRedirect : string -> Microsoft.AspNetCore.Mvc.LocalRedirectResult
Public Overridable Function LocalRedirect (localUrl As String) As LocalRedirectResult

Parameters

localUrl
String String String

The local URL to redirect to.

Returns

Applies to