superset icon indicating copy to clipboard operation
superset copied to clipboard

the schema of short url is hard code to http

Open ktong opened this issue 8 years ago • 3 comments

https://github.com/apache/incubator-superset/blob/93ec76f7570dcd53d110498cc18ec0f15dd9854b/superset/views/core.py#L750

ktong avatar Mar 21 '18 05:03 ktong

this code should do the work :

scheme = request.scheme  
return Response(  
            '{scheme}://{request.headers[Host]}/{directory}?r={obj.id}'.format(  
             scheme = scheme, request=request, directory=directory, obj=obj),  
            mimetype='text/plain')

ripoul avatar Apr 25 '18 13:04 ripoul

@ripoul mind submitting a PR ?

mistercrunch avatar Apr 25 '18 21:04 mistercrunch

@mistercrunch done and merge! Close?

ripoul avatar Apr 27 '18 19:04 ripoul