<filename>flaskbog/helper.py
from flask import request, url_for

def url_for_other_page(page):
    args = request.view_args.copy()
    args['page'] = page
    return url_for(request.endpoint, **args)

<filename>flaskbog/helper.py
from flask import request, url_for

def url_for_other_page(page):
    args = request.view_args.copy()
    args['page'] = page
    return url_for(request.endpoint, **args)
