from flask import redirect, url_for
from portal import app

@app.route('/', methods=['GET'])
def index():
	return redirect(url_for('practices_index', _external=True))

from flask import redirect, url_for
from portal import app

@app.route('/', methods=['GET'])
def index():
	return redirect(url_for('practices_index', _external=True, _scheme="https"))

Fix incorrect protocol being using when behin reverse proxy
Fix incorrect protocol being using when behin reverse proxy

  from flask import redirect, url_for
  from portal import app
  
  @app.route('/', methods=['GET'])
  def index():
- 	return redirect(url_for('practices_index', _external=True))
+ 	return redirect(url_for('practices_index', _external=True, _scheme="https"))
  
Fix incorrect protocol being using when behin reverse proxy
## Code Before:
from flask import redirect, url_for
from portal import app

@app.route('/', methods=['GET'])
def index():
	return redirect(url_for('practices_index', _external=True))

## Instruction:
Fix incorrect protocol being using when behin reverse proxy
## Code After:
from flask import redirect, url_for
from portal import app

@app.route('/', methods=['GET'])
def index():
	return redirect(url_for('practices_index', _external=True, _scheme="https"))
