You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Juza Petr <Pe...@anect.com> on 2008/10/23 11:12:52 UTC

[orchestra] Don't add ?conversationContext=x for external links

Hello,

is there a way to configure orchestra not to add ?conversationContext=x
to outbound links?

I have

<h:outputLink value="http://myfaces.apache.org/">link</h:outputLink>

but the rendered link goes to:

http://myfaces.apache.org/?conversationContext=1

This is not what I want.

Best regards...
PETER

Re: [orchestra] Don't add ?conversationContext=x for external links

Posted by Simon Kitching <sk...@apache.org>.
Juza Petr schrieb:
> Hello,
>
> is there a way to configure orchestra not to add ?conversationContext=x
> to outbound links?
>
> I have
>
> <h:outputLink value="http://myfaces.apache.org/">link</h:outputLink>
>
> but the rendered link goes to:
>
> http://myfaces.apache.org/?conversationContext=1
>   

You can write
<o:separateConversationContext>
  <h:outputLink ..../>
</o:separateConversationContext>

It would be nice for Orchestra to check whether the absolute URL matches
the current webapp, and if not then omit the conversationContext param
automatically. But that gets tricky when using virtual hosting or apache
mod_rewrite or similar. If anyone can suggest a reliable way of
detecting whether the url points back into the same webapp I'd be happy
to add a patch to do that.

Cheers,
Simon

-- 
-- Emails in "mixed" posting style will be ignored
-- (http://en.wikipedia.org/wiki/Posting_style)