protected String calculateBaseSearchUrl(){
  String baseUrl=Util.getAbsoluteUrl(context.getActionPath());
  if (pk != null) {
    for (int i=0; i < pk.length; i++) {
      int lastSlashIndex=baseUrl.lastIndexOf('/');
      baseUrl=baseUrl.substring(0,lastSlashIndex);
    }
  }
  return baseUrl;
}

protected String calculateBaseSearchUrl ( ) { String baseUrl = Util . getAbsoluteUrl ( context . getActionPath ( ) ) ; if ( pk != null ) { for ( int i = 0 ; i < pk . length ; i ++ ) { int lastSlashIndex = baseUrl . lastIndexOf ( '/' ) ; baseUrl = baseUrl . substring ( 0 , lastSlashIndex ) ; } } return baseUrl ; }
computes the search url from the current url . in other words , it removes any / pk trailing path fragment from the url used to access the page .
