This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 34278c2d56 fix: Redirects old Explore URLs to the new one (#20812)
34278c2d56 is described below

commit 34278c2d56e3e3ac09660227b23fa4b107311ee5
Author: Michael S. Molina <[email protected]>
AuthorDate: Fri Jul 22 01:26:29 2022 -0300

    fix: Redirects old Explore URLs to the new one (#20812)
---
 superset/views/core.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/superset/views/core.py b/superset/views/core.py
index 5236ebc494..a2998b303e 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -752,6 +752,9 @@ class Superset(BaseSupersetView):  # pylint: 
disable=too-many-public-methods
             "This API endpoint is deprecated and will be removed in version 
3.0.0",
             self.__class__.__name__,
         )
+        if request.method == "GET":
+            return redirect(request.url.replace("/superset/explore", 
"/explore"))
+
         initial_form_data = {}
 
         form_data_key = request.args.get("form_data_key")

Reply via email to