Redirect URL requests with "caravel" to "superset" (#1651)

* Redirect URL requests with "caravel" to "superset"

* Adding extra line break
This commit is contained in:
Robert Kingston 2016-11-21 05:36:51 +11:00 committed by Maxime Beauchemin
parent 7e1852ee88
commit 868e5c45fe

View File

@ -2624,4 +2624,11 @@ app.url_map.converters['regex'] = RegexConverter
@app.route('/<regex("panoramix\/.*"):url>')
def panoramix(url): # noqa
return redirect(request.full_path.replace('panoramix', 'superset'))
@app.route('/<regex("caravel\/.*"):url>')
def caravel(url): # noqa
return redirect(request.full_path.replace('caravel', 'superset'))
# ---------------------------------------------------------------------