def url_join(*pieces: str) -> str:
    """
    Join url parts, avoid slash duplicates or lacks
    :param pieces: any number of url parts
    :return: url
    """
    return '/'.join(s.strip('/') for s in pieces)