diff --git a/polyglot/src/main/java/org/restheart/polyglot/interceptors/JSInterceptorFactory.java b/polyglot/src/main/java/org/restheart/polyglot/interceptors/JSInterceptorFactory.java index eac7f1036..00c695b70 100644 --- a/polyglot/src/main/java/org/restheart/polyglot/interceptors/JSInterceptorFactory.java +++ b/polyglot/src/main/java/org/restheart/polyglot/interceptors/JSInterceptorFactory.java @@ -93,7 +93,8 @@ public JSInterceptorFactory(Optional mclient, Configuration config) } // check plugin definition - var sindexPath = pluginPath.toAbsolutePath().toString(); + var sindexPath = pluginPath.toUri().toString(); + LOGGER.debug("Resolved interceptor path: {}", sindexPath); try (Context ctx = ContextQueue.newContext(engine, "foo", config, LOGGER, mclient, "", contextOptions)) {