def get_url_path(value):
    """Takes a gitlab repository url and returns its path component

    Example:
    >>> get_url_path("https://gitlab.com/thorgate-public/django-project-template")
    >>> "thorgate-public/django-project-template"
    """
    if not value or not value.strip():
        return value

    res = value.strip()
    res = res.replace('http://', '')
    res = res.replace('https://', '')

    domain, rest = res.split('/', maxsplit=1)

    return f"{rest}"