fix(menu): links that result in 404s (#13283)

This commit is contained in:
ʈᵃᵢ 2021-02-22 12:15:12 -06:00 committed by GitHub
parent 1e2ea36e70
commit a646914493
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -369,7 +369,7 @@ class SupersetAppInitializer:
appbuilder.add_link(
"Upload a CSV",
label=__("Upload a CSV"),
href="/csvtodatabaseview/form/",
href="/csvtodatabaseview/form",
icon="fa-upload",
category="Data",
category_label=__("Data"),
@ -384,7 +384,7 @@ class SupersetAppInitializer:
appbuilder.add_link(
"Upload Excel",
label=__("Upload Excel"),
href="/exceltodatabaseview/form/",
href="/exceltodatabaseview/form",
icon="fa-upload",
category="Data",
category_label=__("Data"),

View File

@ -620,7 +620,7 @@ class Superset(BaseSupersetView): # pylint: disable=too-many-public-methods
@has_access
@event_logger.log_this
@expose("/import_dashboards", methods=["GET", "POST"])
@expose("/import_dashboards/", methods=["GET", "POST"])
def import_dashboards(self) -> FlaskResponse:
"""Overrides the dashboards using json instances from the file."""
import_file = request.files.get("file")