Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: Catalyst - Add Trailing Slashes to URLs

by Sixtease (Friar)
on Dec 02, 2008 at 16:33 UTC ( [id://727459]=note: print w/replies, xml ) Need Help??


in reply to Re: Catalyst - Add Trailing Slashes to URLs
in thread Catalyst - Add Trailing Slashes to URLs

But if I'm not mistaken, then this would not add the slash in the user agent. And that's where it is essential because of relative links

use strict; use warnings; print "Just Another Perl Hacker\n";
  • Comment on Re^2: Catalyst - Add Trailing Slashes to URLs

Replies are listed 'Best First'.
Re^3: Catalyst - Add Trailing Slashes to URLs
by dsheroh (Monsignor) on Dec 03, 2008 at 01:13 UTC
    By default you are correct, but adding [R] to the end of your RewriteRule will cause it to do a client-side redirect instead of handling it internally.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://727459]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-16 06:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found