Commit 6e7a544d authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Fixed task direct link to support container protocol.

parent e6a0c9a6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -924,7 +924,7 @@ def sharable_link_handler(request, id):

    # Then, redirect to the task through the tunnel
    tunnel_host = get_tunnel_host()
    return redirect('http://{}:{}'.format(tunnel_host,task.tunnel_port))
    return redirect('{}://{}:{}'.format(task.container.protocol, tunnel_host,task.tunnel_port))