title: Disabling seam's redirect filter
body: <p>I'm doing a project in seam that requires restful URLs. I have a view that is mapped to /group/{group}/{locale}. On that page I have a list of so called messages. Each message has a button to save changes to the message. This is linked to an action bean like this:</p>
  
  <pre><code>&lt;h:commandButton type="submit" value="Save Changes" action="#{groupAction.update}" /&gt;
  </code></pre>
  
  <p>Each message has an anchor, so /group/{group}/{locale}#{id} can be used to make the browser go to that anchor. This is why I need a redirect after the POST:</p>
  
  <pre><code>&lt;page view-id="/group.xhtml"&gt;
    &lt;rewrite pattern="/group/{group}/{locale}"/&gt;
  
    &lt;param name="group" value="#{groupAction.group}"/&gt;
    &lt;param name="locale" value="#{groupAction.locale}"/&gt;
  
    &lt;navigation from-action="#{groupAction.update}"&gt;
      &lt;redirect view-id="/group.xhtml?group=#{group}&amp;locale=#{locale}##{id}"/&gt;
    &lt;/navigation&gt;
  &lt;/page&gt;
  </code></pre>
  
  <p>Also I have the following redirect rule (UrlRewriteFilter) to get to the proper RESTful URL:</p>
  
  <pre><code>&lt;outbound-rule&gt;
    &lt;from&gt;^/group.xhtml\?group=([\.\w]+)&amp;locale=([\.\w]+)\#([\.\w]+)\?cid=(\d*)$&lt;/from&gt;
    &lt;to type="temporary-redirect" last="true"&gt;/group/$1/$2#$3&lt;/to&gt;
  &lt;/outbound-rule&gt;
  </code></pre>
  
  <p>I strip the conversationId here. This has been tested an works. However seam still  appends a '?conversationId={cid}'. So what's the problem? Well, imagine a URL like '/group/{group}/{locale}#{id}?conversationId={cid}'. Oviously the browser doesn't like this and will not automatically go to that anchor.</p>
  
  <p>I did some research and discovered my problem in the seam documentation:</p>
  
  <p><strong>29.1.4.2. Conversation propagation with redirects</strong>
  This filter allows Seam to propagate the conversation context across browser redirects. It intercepts any browser redirects and adds a request parameter that specifies the Seam conversation identifier. The redirect filter will process all requests by default, but this behavior can also be adjusted in components.xml:</p>
  
  <pre><code>&lt;web:redirect-filter url-pattern="*.seam"/&gt;
  </code></pre>
  
  <p>I don't need the redirect-filter and I tried putting something invalid in the url-pattern to "disable" the filter. However that didn't work. So my question is now:</p>
  
  <p>How do I disable the redirect-filter in seam? </p>
  
  <p>I can't find the answer. The seam documentation talks about disabling it in web.xml, but my attempts have not been succesful yet.</p>