Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Redirector

Alexanderius edited this page Sep 22, 2016 · 4 revisions

Redirector is a class which providers a client redirection.

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

Available redirection types

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

  • LoginReturnUrl - redirects client to an URL stored on unauthorised page access after which client was redirect to login page;

  • PreviousPage - redirects client to a previous visited page (after each request framework stores current visited URL in a client cookie(unit 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 bokmark on that page;

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

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

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

<< Previous page Next page >>

Clone this wiki locally