Hi David,

On 20 Feb 2004, at 13:06, [EMAIL PROTECTED] wrote:

I've found that by using the cocoon:// "Internal" protocol, the redirect
takes place internally and
not on the client side.  You might try:


<!-- Handle app?id=123 by redirecting to a
      bookmark URL which does the right thing -->
    <map:match pattern="app">
     <map:redirect-to uri="cocoon://bookmark?top=0&amp;leftnav-home=0
        &amp;home-apps=1
        &amp;app1={request-param:id}
        &amp;app2={request-param:id}"/>
    </map:match>

Actually I couldn't get that to work (it produces a blank page), but this works fine:


<map:match pattern="app">
  <map:generate src="cocoon://bookmark?top=0&amp;leftnav-home=0
       &amp;home-apps=1
       &amp;app1={request-param:id}
       &amp;app2={request-param:id}"/>
  <map:serialize type="html"/>
</map:match>

I also tried <map:read src="..."/> but that didn't work either (Firefox complains about the HTML).

Thanks,

Jon

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to