You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/07/13 07:40:54 UTC

[GitHub] [superset] zhaoyongjie commented on pull request #20673: fix(explore): Fix chart standalone URL for report/thumbnail generation

zhaoyongjie commented on PR #20673:
URL: https://github.com/apache/superset/pull/20673#issuecomment-1182875816

   Hi @codyml, I look into the related codebase. I think you just change one line to fix it.
   
   ```
   (superset) yongjie.zhao@:incubator-superset$ git diff superset/views/core.py
   diff --git a/superset/views/core.py b/superset/views/core.py
   index 298535011..8aedf8321 100755
   --- a/superset/views/core.py
   +++ b/superset/views/core.py
   @@ -427,7 +427,7 @@ class Superset(BaseSupersetView):  # pylint: disable=too-many-public-methods
            _, slc = get_form_data(slice_id, use_slice_data=True)
            if not slc:
                abort(404)
   -        endpoint = "/superset/explore/?form_data={}".format(
   +        endpoint = "/explore/?form_data={}".format(
                parse.quote(json.dumps({"slice_id": slice_id}))
            )
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org