I am using url_for
to generate a redirect URL when a user has logged out:
return redirect(url_for('.index', _external=True))
However, when I changed the page to a https connection, the url_for
still gives me http.
I would like to explicitly ask url_for
to add https at the beginning of a URL.
Can you point me how to change it? I looked at Flask docs, without luck.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…