public String getOpenBrowserUrl ( ) { final String customUrl = getCustomBrowserUrl ( ) ; final String deployUrl = getDeployUrl ( ) ; if ( customUrl == null ) { return deployUrl ; } else if ( customUrl . startsWith ( "http://" ) ) { return customUrl ; } else if ( customUrl . startsWith ( "/" ) ) { return buildUrl ( getPort ( ) , customUrl ) ; } else { return deployUrl + customUrl ; } }
Returns the url to use when the browser opens according to both the deploy url and a custom browser url if set .