def url_join(*parts: str) -> str:
    """ Join the different url parts with forward slashes. """
    return "/".join([part.strip("/") for part in parts]) + ("/" if parts and parts[-1].endswith("/") else "")