NAME

Catalyst::Plugin::SanitizeUrl - Make Catalyst not ignore trailing slashes

SYNOPSIS

    use Catalyst 'SanitizeUrl';

DESCRIPTION

This plugin makes sure Catalyst is not agnostic to trailing slashes in the URLs passed to it by the user agent.

By default Catalyst will treat the following URLs:

    http://localhost:3000/one/two

And

    http://localhost:3000/one/two/

As the same, even though user agents treat them differently as far as relative URLs are concerned.

This plugin will cause the trailing slashes to be included in the Catalyst path.

EXTENDED METHODS

prepare

Sets up $c->{form}

get_action_path

Overrided from Catalyst::Plugin::SanitizeUrl::PrepAction to do the right thing.

NOTES

This module's name is misleading and problematic. I heard of a better module to achieve the same ends as this module, but lost the reference.

SEE ALSO

Catalyst

AUTHOR

Shlomi Fish, shlomif@iglu.org.il

COPYRIGHT

This program is free software, you can redistribute it and/or modify it under the terms of the MIT X11 license.

(Just note that the ::PrepAction module is derived from the Catalyst code itself and so is distributed under the same terms as Perl itself).