You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Merico Raffaele <ra...@less.ch> on 2006/10/06 08:23:30 UTC

redirect-to problem

Dear Community

I have a system running with Cocoon 2.1.7.

In the sitemap under 
   webapps/V2D/appl I do a 
   <map:redirect-to uri="/auth/logout"/>. 

Now it seems that this redirect is expanded with the IP address of the
server (i.e. http://999.999.999.999/auth/logout). But since this Cocoon
application is protected by a web entry system, this request cannot be
resolved. 

The question is now, how can I avoid the usage of the IP address in the
map:redirect-to.

For your support many thanks in advance ... Raffaele

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: redirect-to problem

Posted by Luca Morandini <lm...@ieee.org>.
Merico Raffaele wrote:
> Dear Community
> 
> I have a system running with Cocoon 2.1.7.
> 
> In the sitemap under 
>    webapps/V2D/appl I do a 
>    <map:redirect-to uri="/auth/logout"/>. 
> 
> Now it seems that this redirect is expanded with the IP address of the
> server (i.e. http://999.999.999.999/auth/logout). But since this Cocoon
> application is protected by a web entry system, this request cannot be
> resolved. 
> 
> The question is now, how can I avoid the usage of the IP address in the
> map:redirect-to.

You are doing a client-side redirect, hence Cocoon prefixes the URI with 
the server's address.
If the page you want the user redirected to is in the Cocoon app, you 
can prefix the "cocoon:" protocol and have a server-side redirect, like in:

<map:match pattern="folder/page1.html">
     <map:redirect-to uri="cocoon:/folder/page2.html"/>
</map:match>

Regards,

--------------------
    Luca Morandini
www.lucamorandini.it
--------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org