@@ -68,11 +68,16 @@ def run_userinput(self, user_apikey, sms="", email="", subflow="", information="
6868 if "shuffle-backend" in frontend_url :
6969 frontend_url = ""
7070
71+ api_continue_url = "%s/api/v1/workflows/%s/execute?authorization=%s&reference_execution=%s&answer=true&source_node=%s" % (frontend_url , self .full_execution ["workflow" ]["id" ], self .full_execution ["authorization" ], self .full_execution ["execution_id" ], source_node )
72+ api_abort_url = "%s/api/v1/workflows/%s/execute?authorization=%s&reference_execution=%s&answer=false&source_node=%s" % (frontend_url , self .full_execution ["workflow" ]["id" ], self .full_execution ["authorization" ], self .full_execution ["execution_id" ], source_node )
73+
74+ # Remove subdomain before .shuffler.io so that https://*.shuffler.io -> https://shuffler.io
75+ if ".shuffler.io" in frontend_url :
76+ frontend_url = "https://shuffler.io"
77+
7178 explore_path = "%s/forms/%s?authorization=%s&reference_execution=%s&source_node=%s" % (frontend_url , self .full_execution ["workflow" ]["id" ], self .full_execution ["authorization" ], self .full_execution ["execution_id" ], source_node )
7279 frontend_continue_url = "%s/forms/%s?authorization=%s&reference_execution=%s&answer=true&source_node=%s" % (frontend_url , self .full_execution ["workflow" ]["id" ], self .full_execution ["authorization" ], self .full_execution ["execution_id" ], source_node )
7380 frontend_abort_url = "%s/forms/%s?authorization=%s&reference_execution=%s&answer=false&source_node=%s" % (frontend_url , self .full_execution ["workflow" ]["id" ], self .full_execution ["authorization" ], self .full_execution ["execution_id" ], source_node )
74- api_continue_url = "%s/api/v1/workflows/%s/execute?authorization=%s&reference_execution=%s&answer=true&source_node=%s" % (frontend_url , self .full_execution ["workflow" ]["id" ], self .full_execution ["authorization" ], self .full_execution ["execution_id" ], source_node )
75- api_abort_url = "%s/api/v1/workflows/%s/execute?authorization=%s&reference_execution=%s&answer=false&source_node=%s" % (frontend_url , self .full_execution ["workflow" ]["id" ], self .full_execution ["authorization" ], self .full_execution ["execution_id" ], source_node )
7681
7782 result ["links" ]["frontend_no_answer" ] = explore_path
7883 result ["links" ]["frontend_continue" ] = frontend_continue_url
0 commit comments