You must implement a custom ConfigurableNavigationHandler that reassigns the URL based on the source of the action (I assume here that not all of your redirects are for https addresses). As an example:
public class NavigationHandlerTest extends ConfigurableNavigationHandler { private NavigationHandlerTest concreteHandler; public NavigationHandlerTest(NavigationHandler concreteHandler) { this.concreteHandler = concreteHandler; } @Override public void handleNavigation(FacesContext context, String fromAction, String outcome) {
Register your implementation in faces-config.xml
<application> <navigation-handler>com.example.NavigationHandlerTest</navigation-handler> </application>
source share