code: public static String getEffectiveURI(WebContext ctx) {
          String uri = ctx.getRequestedURI();
          if (uri.startsWith("/s3")) {
              uri = uri.substring(3);
          }
          if (uri.startsWith("/")) {
              uri = uri.substring(1);
          }
  
          return uri;
      }
docs: Returns the effective URI.
  <p>
  As we have to support legacy URIs which have an <tt>/s3</tt> prefix, we cut this here, and
  also the first "/" and only return the effective URI to process.
  
  @param ctx the current request
  @return the effective URI to process