@app_template_filter("<STR_LIT>")<EOL><INDENT>def link_page_size_filter(self, page_size, modelview_name):<DEDENT>
new_args = request.view_args.copy()<EOL>args = request.args.copy()<EOL>args["<STR_LIT>" + modelview_name] = page_size<EOL>return url_for(<EOL>request.endpoint,<EOL>**dict(list(new_args.items()) + list(args.to_dict().items()))<EOL>)<EOL>
Arguments are passed like: psize_<VIEW_NAME>=<PAGE_NUMBER>