title: p:menuItem action and redirecting on action handler - windowId being tacked to end of redirect URL
body: <p>I have this issue with p:menuItem - using PF 3.3.1, PrettyFaces 3.3.3 and JSF/Mojarra2.1.</p>
  
  <p>So I have a set of p:menuItems that need to pass through an "ID" parameter from the current page.  However, I do not wish to build a URL of the form:  /page/targetPage?id=id&amp;faces-redirect=true.  What I would like to do is, on the page action handler, redirect to the URL in question.  However, the problem is that the resulting redirect attaches a windowId to the end and I cannot access the targetURL!</p>
  
  <p>in my facelet:</p>
  
  <pre><code>&lt;p:menuitem action="#{myActions.performAction}" ajax="false" value="navigateToThisAction"/&gt;
  </code></pre>
  
  <p>In my backing bean:</p>
  
  <pre><code>public String performAction() {
      return navigate("pretty:myAction");
  }
  
  protected String navigate(String mappingId) {
      HttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
      PrettyContext context = PrettyContext.getCurrentInstance(request);
      PrettyURLBuilder builder = new PrettyURLBuilder();
  
      UrlMapping mapping = context.getConfig().getMappingById(mappingId);
      String targetURL = builder.build(mapping, true, getId());
  
      try {
          FacesContext.getCurrentInstance().getExternalContext().redirect(targetURL);
      } catch (IOException ioe) {
          System.out.println("Error redirecting..." + ioe.getMessage());
      }
      return null;
  
  }
  </code></pre>