[Catalyst] Returning to referer - which action to take?

Ekki Plicht (DF4OR) ep at plicht.de
Mon Sep 27 23:23:27 GMT 2010


Am Montag 27 September 2010, 17:18:37 schrieb Tomas Doran:
> On 26 Sep 2010, at 20:38, Ekki Plicht (DF4OR) wrote:
> > Serving the pages in different languages works fine with C::P::I18N,
> > but I
> > can't figure out how to return the visitor to the refering page.
> > Simply
> > redirecting to the referer does not work, because a prepared cookie
> > isn't
> > preserved over a redirect (isn't it?).
> 
> Yes, it is.
> 
> If you send a cookie as part of a 302 redirect, then that cookie will
> (if applicable) be re-presented on the GET of the resource that the
> user was redirected to.

Hm, then something is wrong in my app. No cookies set with a redirect at the 
moment, but that's certainly my fault. I will investigate later, thanks for 
the advice.

Cheers,
Ekki



More information about the Catalyst mailing list