You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Michel de Blok <mi...@yahoo.com> on 2003/09/01 14:05:43 UTC
Losing parameters when re-directing?
I'm using Cocoon 2.1m3 and when I perform a <map:redirect-to uri="{page}" /> in the sitemap, I lose my parameters from the original request. I can fix this by using the internal cocoon redirect (with the cocoon: protocol), but I rather not use this since it doesn't update the URL in the clients web browser (causing problems performing a refresh, or bookmarking the site).
Is there another way to redirect in Cocoon and keep the original request parameters?
Regards,
Michel de Blok
---------------------------------
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
Re: Losing parameters when re-directing?
Posted by Upayavira <uv...@upaya.co.uk>.
Michel de Blok wrote:
> I'm using Cocoon 2.1m3 and when I perform a <map:redirect-to
> uri="{page}" /> in the sitemap, I lose my parameters from the original
> request. I can fix this by using the internal cocoon redirect (with
> the cocoon: protocol), but I rather not use this since it doesn't
> update the URL in the clients web browser (causing problems performing
> a refresh, or bookmarking the site).
>
> Is there another way to redirect in Cocoon and keep the original
> request parameters?
>
> Regards,
> Michel de Blok
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Yahoo! SiteBuilder
> <http://us.rd.yahoo.com/evt=10469/*http://sitebuilder.yahoo.com> -
> Free, easy-to-use web site design software
Something like this might work.
<map:redirect-to uri="uri?{request:queryString}"/>
(Could be {request:query-string})
Note that a redirect does an HTTP redirect, and therefore no HTTP
request parameters will be propogated.
Regards, Upayavira
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org