def METHOD_NAME(this_lang_code, content):
    """ Update footer links in markdown to be language relative """
    result = content
    try:
        common_lang_codes = ["en/", "es/", "de/", "fr/", "es/", "ja/", "resources/"]
        exclude_common_langs = "|".join(list(map(lambda code: f"{code}",common_lang_codes)))
        relative_regex = re.compile("^(\\[[0-9]+]\:\\s*)(\/(?!" + exclude_common_langs + ").*)$", re.MULTILINE | re.IGNORECASE)
        substitute = "\g<1>/" + this_lang_code.lower() + "\g<2>"
        result = relative_regex.sub(substitute, content)
    except Exception as e:
        result = content
        logger.exception("fail to update md links")
    finally:
        return result