pileofrogs has asked for the wisdom of the Perl Monks concerning the following question:
Hello Monks.
I'm working on a Catalyst app. I want to make things nicer when people hit the app, discover they're logged out, and then log in. I not only want to redirect to the originally intended page, but I also want to include any parameters in that redirect.
This is primarily to ease testing for me. I'll fill out a form, get an error, apply a fix, restart the fcgi process, and then I'll hit reload, which resends my query. But I'm logged out because I restarted the server. So, I get bounced to my login screen. I then have to log in and re-enter everything in my form.
What I want to do is submit my request, get bounced to the login screen and then after login, have my originally submitted request processed. I don't even want to see the form again.
I assume this means populating $c->response in some way. Should I go through $c->request->params and stick everything on the URL that I redirect to, or is there a better way?
Thanks!
--Pileofrogs
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Catalyst Redirect Hints?
by shmem (Chancellor) on Mar 25, 2009 at 21:51 UTC | |
by saberworks (Curate) on Mar 25, 2009 at 22:00 UTC | |
by shmem (Chancellor) on Mar 25, 2009 at 22:52 UTC | |
|
Re: Catalyst Redirect Hints?
by Your Mother (Archbishop) on Mar 25, 2009 at 22:36 UTC | |
by holli (Abbot) on Mar 26, 2009 at 04:10 UTC | |
by Your Mother (Archbishop) on Mar 26, 2009 at 05:32 UTC | |
|
Re: Catalyst Redirect Hints?
by saberworks (Curate) on Mar 25, 2009 at 21:32 UTC | |
|
Re: Catalyst Redirect Hints?
by Your Mother (Archbishop) on Mar 26, 2009 at 06:45 UTC | |
|
Re: Catalyst Redirect Hints?
by Gryllida (Acolyte) on Feb 03, 2013 at 00:40 UTC |