Catalyst::Plugin::Redirect(3pm)

Catalyst::Plugin::Redirect3pm

Redirect for catalyst used easily is offered.

Usage

  use Catalyst 'Redirect';
  $c->get_baseurl;
  $c->redirect('redirect_url');
  $c->redirect('/redirect_url');
  $c->redirect('http://www.perl.org/');

Overview

Redirect for Catalyst used easily is offered.

Methods

get_baseurl

Basic URL of your application is returned. If your application is executed by "http://myhost/myapp/" it returns "/myapp/" .

redirect

$c->redirect('redirect_url'); $c->res->redirect('redirect_url') is executed.

$c->redirect('/redirect_url'); $c->res->redirect($c->get_baseurl.'redirect_url') is executed.

$c->redirect('http://www.perl.org/'); $c->res->redirect('http://www.perl.org/') is executed.

Releases

6 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8–10
  2. 11–13

Bugs

When Reverse Proxy is used, get_baseurl returns the backend server's base. For example, "/" will be returned when http://www.mydomain.com/myapp/ is a proxy for http://appserver.local.server/.

Author

Shota Takayama, "shot[atmark]bindstorm.jp"

From libcatalyst-plugin-redirect-perl 0.2-1.1 in Debian 13 (Trixie). Parsed by carta from the page's man source.