fixed a bug when plugin didn't respect stripTrailingSlash option when params were provided