Removing flask.url_for redirects because they break https sometimes.