protected String parsePath ( String currentActionPath , String url ) { if ( url . startsWith ( SLASH ) ) { return url . split ( "\\?" ) [ 0 ] ; } else if ( ! url . contains ( SLASH ) ) { return SLASH + currentActionPath . split ( SLASH ) [ 1 ] + SLASH + url . split ( "\\?" ) [ 0 ] ; } else if ( url . contains ( "http:" ) || url . contains ( "https:" ) ) { return null ; } ///abc/def","bcd/efg?abc return currentActionPath + SLASH + url . split ( "\\?" ) [ 0 ] ; }
Based on the current path structure is going to jump full Action of the path