added cleanUrl to remove successive '/' in urls