'Return the update-to-date path.
xblock_cache.paths is the list of all possible paths to a block
constructed by doing a DFS of the tree. However, in case of DAGS,
which section jump_to_id() takes the user to depends on the
modulestore. If xblock_cache.paths has only one item, we can
just use it. Otherwise, we use path_to_location() to get the path
jump_to_id() will take the user to.'

@staticmethod
def updated_path(usage_key, xblock_cache):

    if (xblock_cache.paths and (len(xblock_cache.paths) == 1)):
        return xblock_cache.paths[0]
    return Bookmark.get_path(usage_key)
