1Catalyst::Plugin::RedirUescetr(3C)ontributed Perl DocumeCnattaatliyosnt::Plugin::Redirect(3)
2
3
4

NAME

6       Catalyst::Plugin::Redirect - Redirect for Catalyst used easily is
7       offered.
8

SYNOPSIS

10         use Catalyst 'Redirect';
11
12         $c->get_baseurl;
13
14         $c->redirect('redirect_url');
15         $c->redirect('/redirect_url');
16         $c->redirect('http://www.perl.org/');
17

DESCRIPTION

19       Redirect for Catalyst used easily is offered.
20

METHODS

22       get_baseurl
23         Basic URL of your application is returned.  If your application is
24         executed by "http://myhost/myapp/" it returns "/myapp/" .
25
26       redirect
27         $c->redirect('redirect_url'); $c->res->redirect('redirect_url') is
28         executed.
29
30         $c->redirect('/redirect_url');
31         $c->res->redirect($c->get_baseurl.'redirect_url') is executed.
32
33         $c->redirect('http://www.perl.org/');
34         $c->res->redirect('http://www.perl.org/') is executed.
35
36       When Reverse Proxy is used, get_baseurl returns the backend server's
37       base.  For example, "/" will be returned when
38       http://www.mydomain.com/myapp/ is a proxy for
39       http://appserver.local.server/.
40

SEE ALSO

42       Catalyst
43

AUTHOR

45       Shota Takayama, "shot[atmark]bindstorm.jp"
46
48       This program is free software, you can redistribute it and/or modify it
49       under the same terms as Perl itself.
50

POD ERRORS

52       Hey! The above document had some coding errors, which are explained
53       below:
54
55       Around line 90:
56           Unknown directive: =BUGS
57
58
59
60perl v5.32.1                      2021-01-26     Catalyst::Plugin::Redirect(3)
Impressum