mirror of
https://github.com/apache/superset.git
synced 2024-09-17 11:09:47 -04:00
Redirect URL requests with "caravel" to "superset" (#1651)
* Redirect URL requests with "caravel" to "superset" * Adding extra line break
This commit is contained in:
parent
7e1852ee88
commit
868e5c45fe
@ -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'))
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user