def _get_view_url(self, admin, url):
        if url is None:
            if admin.url != '/':
                url = '%s/%s' % (admin.url, self.endpoint)
            else:
                if self == admin.index_view:
                    url = '/'
                else:
                    url = '/%s' % self.endpoint
        else:
            if not url.startswith('/'):
                url = '%s/%s' % (admin.url, url)

        return url
Replace `self` node with `new`, where `new` is a node or a
dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/base.py/BaseView._get_view_url--crossover with--dataset/ETHPy150Open adieu/allbuttonspressed/docutils/nodes.py/Element.replace_self