The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Catalyst::Plugin::RelativePaths - Make $c->uri_for and $c->req->uri_with return relative URIs

VERSION

Version 0.01

SYNOPSIS

Make $c->uri_for and $c->req->uri_with return relative, instead of absolute URIs.

This is useful in situations where you're for example, redirecting to a lighttpd from a firewall rule, instead of a real proxy, and you want your links and redirects to still work correctly.

Also, mtfnpy.

    package MyApp;
    ...
    use Catalyst qw/RelativePaths/;
    ...

AUTHOR

Rafael Kitover, <rkitover at cpan.org>

BUGS

Please report any bugs or feature requests to bug-catalyst-plugin-relativepaths at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Catalyst-Plugin-RelativePaths. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Catalyst::Plugin::RelativePaths

You can also look for information at:

ACKNOWLEDGEMENTS

From #catalyst:

Thanks to vipul for pointing out that this hack can be used to get around troublesome networking issues.

Thanks to kd for explaining how this is possible, and reviewing my code.

COPYRIGHT & LICENSE

Copyright (c) 2008 Rafael Kitover

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.