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
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
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