def get_module_url(module_items_url):
    """
    Extracts the module direct url from the items_url.
    Example:
    items_url https://canvas.instance.com/api/v1/courses/course_id/modules/module_id/items'
    becomes https://canvas.instance.com/courses/course_id/modules/module_id
    """
    return module_items_url.replace('api/v1/','').replace('/items', '')