Cataly...direct(3pm)
π Cataly...direct(3pm) β the girlies' guide π
okay so bestie, this is a page from the User Contributed Perl Documentation, and it's filed under the manual name Cataly...direct(3pm). yes the title got squished by the terminal, that's just how man pages do. the real one is Catalyst::Plugin::Redirect. let's go π
β¨ NAME β¨
Catalyst::Plugin::Redirect β redirecting for Catalyst, made easy, offered to you on a lil platter π
πΈ SYNOPSIS πΈ
use Catalyst 'Redirect';
$c->get_baseurl;
$c->redirect('redirect_url');
$c->redirect('/redirect_url');
$c->redirect('http://www.perl.org/');
π¦ DESCRIPTION π¦
Redirect for Catalyst, used easily, is offered. that's the whole vibe fr fr β¨
π METHODS π
π get_baseurl
Your app's basic URL gets returned, periodt. so if your application is being run at http://myhost/myapp/, it hands you back /myapp/ π«Ά
π redirect
Three whole moods, bestie:
$c->redirect('redirect_url');β this means$c->res->redirect('redirect_url')is executed. straightforward, iconic, no notes π$c->redirect('/redirect_url');β this means$c->res->redirect($c->get_baseurl.'redirect_url')is executed. notice the leading slash? it gets the base url glued onto it β¨$c->redirect('http://www.perl.org/');β this means$c->res->redirect('http://www.perl.org/')is executed. full URL, full send, no base url involved π
π BUGS π
When a Reverse Proxy is in the mix,get_baseurlreturns the backend server's base. like, for example,/will be returned whenhttp://www.mydomain.com/myapp/is a proxy forhttp://appserver.local.server/. so yeah, that's a whole thing, be aware π
π₯ SEE ALSO π₯
Catalyst
π AUTHOR π
Shota Takayama, "shot[atmark]bindstorm.jp" β thank you for your service, king π«‘β¨
π COPYRIGHT AND LICENSE π
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. slay, open source legend πΈ
and that's the whole page, bestie! this was perl v5.32.0, dated 2021-01-08, and it came to you straight from the Cataly...direct(3pm) man page in the User Contributed Perl Documentation. no cap, that's a wrap π
π
π¦ where this page comes from
- debian bookworm: libcatalyst-plugin-redirect-perl 0.2-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatalyst-plugin-redirect-perl 0.2-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libcatalyst-plugin-redirect-perl 0.2-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatalyst-plugin-redirect-perl 0.2-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatalyst-plugin-redirect-perl 0.2-1.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms