kobin
kobin copied to clipboard
Reverse routing with next url endpoint
Summary
Sometimes, we want to set query_parameters when redirecting like:
- http://flask.pocoo.org/docs/0.12/patterns/viewdecorators/
Caution
This option bumped with url variables.
@app.route('/foo/{next}')
def foo(next: str) -> Response:
return Response('foo')
Maybe next_url does not conflict with url variables.