[Catalyst] Re: redirection to the original URI

2007-01-01 Thread Fayland Lam
Thomas Hartman wrote: Actually I see now that the location method is mentioned in the code http://search.cpan.org/src/SRI/Catalyst-5.61/lib/Catalyst/Response.pm Just not in the documentation. Indeed, it seems only to be used by the redirect() method. Couldn't you just then use

[Catalyst] Re: redirection to the original URI

2006-12-31 Thread Fayland Lam
Octavian Rasnita wrote: Hi, If the user wants to access a restricted zone and it is redirected to the login page, which is the recommended way of redirecting him back to the original URL? I know that I could create a hidden field in the login form and put the request URL in that field, and

Re: [Catalyst] Re: redirection to the original URI

2006-12-31 Thread Thomas Hartman
Actually I see now that the location method is mentioned in the code http://search.cpan.org/src/SRI/Catalyst-5.61/lib/Catalyst/Response.pm Just not in the documentation. Indeed, it seems only to be used by the redirect() method. Couldn't you just then use Response::redirect here? If my