cleanup URL paths