kobin icon indicating copy to clipboard operation
kobin copied to clipboard

Reverse routing with next url endpoint

Open c-bata opened this issue 8 years ago • 1 comments

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')

c-bata avatar Jan 02 '17 17:01 c-bata

Maybe next_url does not conflict with url variables.

c-bata avatar Jan 04 '17 02:01 c-bata