Skip to content
This repository has been archived by the owner on Nov 9, 2018. It is now read-only.

Redirector

Alexanderius edited this page Sep 20, 2014 · 1 revision

Redirector is a class which providers a client redirection.

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

Available redirection types:

  • RedirectUrl - redirects client to specified URL: Redirector.Redirect(RedirectionType.RedirectUrl, "http://someurl");
  • PreviousPage - redirects client to previous visited page (after each request framework stores current visited URL in client cookie(unit session ends)). If there is no previous page URL, then client will be redirected to default page;
  • PreviousPageWithBookmark - the same as PreviousPage but you can also specify a bokmark on that page;
  • CurrentPage - redirects client to current page (refresh the page);
  • DefaultPage - redirects client to 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