import re


def fix_link(s):
    """
    If the string `s` (which is a link) does not begin with http or
    https, append http and return it.
    """
    if not re.match(r'^https?://', s):
        s = 'http://{0}'.format(s)
    return s