From 6e7a544db4d538bce8fdba4e083e4c5c27e72523 Mon Sep 17 00:00:00 2001
From: Stefano Alberto Russo <stefano.russo@gmail.com>
Date: Tue, 12 Jan 2021 23:45:29 +0100
Subject: [PATCH] Fixed task direct link to support container protocol.

---
 services/webapp/code/rosetta/core_app/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/services/webapp/code/rosetta/core_app/views.py b/services/webapp/code/rosetta/core_app/views.py
index 313754c..5d63f68 100644
--- a/services/webapp/code/rosetta/core_app/views.py
+++ b/services/webapp/code/rosetta/core_app/views.py
@@ -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))
     
 
 
-- 
GitLab