|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Catalyst - Add Trailing Slashes to URLsby Sixtease (Friar) |
| on Dec 02, 2008 at 13:28 UTC ( #727410=perlquestion: print w/ replies, xml ) | Need Help?? |
|
Sixtease has asked for the
wisdom of the Perl Monks concerning the following question:
Hello all, I'm looking for a way to tell Catalyst to add a trailing slash if one is not present to the URL of the request and redirect there. But only if the request is not being handled by Static::Simple. I could do it by checking the URL in every action but I'd prefer to have it globally in one place. How can I do that?
use strict; use warnings; print "Just Another Perl Hacker\n";
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||