Click or drag to resize
URLHelperLocalRedirect Method
Redirects (302 HTTP status code) the response using specified URL in case it is local, otherwise redirects to ApplicationPath

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 11.0.0
Syntax
C#
public static void LocalRedirect(
	string url
)

Parameters

url
Type: SystemString
URL within same domain.
Remarks
Use this method when the specified URL comes as user input (query string, POST form data, etc.) in order to prevent unvalidated redirects.
See Also