def redirect ( view = None , url = None , * * kwargs ) : if view : if url : kwargs [ "url" ] = url url = flask . url_for ( view , * * kwargs ) current_context . exit ( flask . redirect ( url ) )
can i send a variable through python flask redirect
Redirects to the specified view or url
def redirect(view=None, url=None, **kwargs):
    """Redirects to the specified view or url
    """
    if view:
        if url:
            kwargs["url"] = url
        url = flask.url_for(view, **kwargs)
    current_context.exit(flask.redirect(url))