def _get_breadcrumbs(url: str):
    """
    >>> _get_breadcrumbs('/products/great_product')
    [('/products', 'products', True), ('/products/great_product', 'great_product', False)]
    >>> _get_breadcrumbs('/products')
    [('/products', 'products', False)]
    >>> _get_breadcrumbs('/')
    []
    >>> _get_breadcrumbs('')
    []
    """
    breadcrumb = []
    i = 2
    for part_name in url.split("/"):
        if part_name:
            part_href = "/".join(url.split("/")[:i])
            breadcrumb.append(
                (
                    part_href,
                    part_name,
                    # Don't link to the current page.
                    part_href != url,
                )
            )
            i += 1
    return breadcrumb