Skip to content

Redirector

Alexanderius edited this page Jul 3, 2025 · 4 revisions

Redirector

Redirector is a class that provides client redirection.

You can redirect the client to a specified URL or by specifying a redirection type.

Available redirection types

  • RedirectUrl - redirects the client to a specified URL: Redirector.Redirect(RedirectionType.RedirectUrl, "http://someurl");

  • LoginReturnUrl - redirects the client to a URL stored on unauthorized page access after which the client was redirected to the login page;

  • PreviousPage - redirects the client to a previously visited page (after each request, the framework stores the current visited URL in a client cookie until the session ends). If there is no previous page URL, then the client will be redirected to a default page;

  • PreviousPageWithBookmark - the same as PreviousPage but you can also specify a bookmark on that page;

  • CurrentPage - redirects the client to the current page (refreshes the page);

  • DefaultPage - redirects the client to the default page (site root).

  • It is recommended to use the respective Redirect controller response instead of Redirector directly.

<< Previous page Next page >>

Clone this wiki locally