@app_template_filter('link_page')
    def link_page_filter(self, page, modelview_name):
        new_args = request.view_args.copy()
        args = request.args.copy()
        args['page_' + modelview_name] = page
        return url_for(request.endpoint, **dict(list(new_args.items()) + list(args.to_dict().items())))
Arguments are passed like: page_<VIEW_NAME>=<PAGE_NUMBER>
dataset/ETHPy150Open dpgaspar/Flask-AppBuilder/flask_appbuilder/filters.py/TemplateFilters.link_page_filter