[Catalyst-dev] Catalyst::Request is missing a function for
initial/previous URI
Markus Zimmermann
markus.zimmermann at atikon.com
Mon Jul 28 13:19:41 BST 2008
Am Sonntag, 20. Juli 2008 03:52:38 schrieb Matt S Trout:
> On Thu, Jul 17, 2008 at 03:25:38PM +0200, Markus Zimmermann wrote:
> > When using a Catalyst action as ErrorDocument handler in Apache-mod_perl,
> > $c->req->uri does not give the URI the user typed in, but the one
> > registered as handler. This makes it impossible to for example use a 404
> > handler as search shortcut.
>
> What is the difference? Are you using a rewrite where a <Location> or
> similar would have been better?
We are using something like this:
<LocationMatch ^/my/project.+$>
ErrorDocument 404 /my/project/search
</LocationMatch>
If you make a request for "http://my.server.domain.com/my/project/projectname"
the search function should use "projectname" as search string.
--
Markus Zimmermann
More information about the Catalyst-dev
mailing list