def METHOD_NAME(self, node):
    kind_slug = None
    if not node.parent:
        kind_slug = ""
    elif node.kind == "topic":
        kind_slug = "t/"
    else:
        kind_slug = "c/"
    if kind_slug is not None:
        return (
            reverse("kolibri:kolibri.plugins.learn:learn")
            + "#/topics/"
            + kind_slug
            + node.id
        )