Fixed wrong URL issue with direct plugin function calls through the new API