title: JSF 2 redirect to HTTPS
body: <p>I've seen these posts: <a href="https://stackoverflow.com/questions/15636609/issues-with-jsf-navigation-rules-using-redirect-on-https">Issues with JSF navigation rules using redirect on HTTPS</a>, and <a href="https://stackoverflow.com/questions/5416070/jsf-2-and-post-redirect-get">JSF 2 and Post/Redirect/Get?</a>, but haven't been able to get what I want to do to work.  I'm trying to redirect to an https page in my app using <code>ConfigurableNavigationHandler</code>.  Here's my <code>handleNavigation</code>:</p>
  
  <pre><code>public void handleNavigation(FacesContext context, String from, String outcome) {
    System.out.println("outcome: " + outcome);
    if (outcome.startsWith("manageEmail")) {
      outcome = "https://localhost:8081/appmonitor/faces/manageEmail.xhtml";
    }
    System.out.println("outcome: " + outcome);
    parent.handleNavigation(context, from, newOutcome);
  }
  </code></pre>
  
  <p>When I click on the link which redirects to "manageEmail", I see that outcome starts as "manageEmail", and changes to my https address, but it doesn't actually redirect there.  I suspect it's trying to navigate to <code>http://localhost:8080/appmonitor/faces/https://localhost:8081/appmonitor/faces/manageEmail.xhtml</code>.  If this is what is in fact happening, is there any way to override this behavior?</p>