Skip to content

With NGINX configured, the airflow web redirect to home page instead of the specific Dag Page after clear. #14450

Answered by yogyang
yogyang asked this question in Q&A
Discussion options

You must be logged in to vote

Just create the question in case someone will meet it again.
Cause:
From Airflow 1.10.14, Airflow introduced new codes for redirection location.

def get_safe_url(url):
"""Given a user-supplied URL, ensure it points to our web server"""
valid_schemes = ['http', 'https', '']
valid_netlocs = [request.host, '']
if not url:
return url_for('Airflow.index')
parsed = urlparse(url)
query = parse_qsl(parsed.query, keep_blank_values=True)
url = parsed._replace(query=urlencode(query)).geturl()
if parsed.scheme in valid_schemes and parsed.netloc in valid_netlocs:
r…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@yogyang
Comment options

Comment options

You must be logged in to vote
1 reply
@springuper
Comment options

Answer selected by yogyang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants