Re: [Maypole] "Redirect, Get Missing Params, Return with Params" problem

From: Simon Flack (sf at flacks.net)
Date: Tue Dec 14 2004 - 23:04:17 GMT


Simon Flack wrote:
>> Customer::do_edit {
>> # create object
>> ...
>> $r->return_from_redirect({cstmr_id => $obj->id}) if $r->redirect;
>
>
> Wouldn't you need return $r->return_from_redirect(... ?
>
>> .. .
>> }

... perhaps not. I suppose it depends what follows. I suppose I'm asking
whether you should rename that method since it doesn't actually return
from the redirect, it restores the session and calls the referer.

Also, you may need to think about whether/how you can redirect from a
redirect (... and on...) and maintain state/user journey properly.

Simon



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT