diff --git a/atdb/taskdatabase/services/algorithms.py b/atdb/taskdatabase/services/algorithms.py index 631e073529fb87aed02abcb952eabbcfed9e62ea..8e501578e3491d2e52742d0171c0c68abf3b6c9b 100644 --- a/atdb/taskdatabase/services/algorithms.py +++ b/atdb/taskdatabase/services/algorithms.py @@ -202,11 +202,10 @@ def construct_link(request, status, workflow_id, count): link = str(count) try: query = "?status=" + status + "&workflow__id=" + str(workflow_id) - #if settings.DEV == False: - # url = "https://" +request.build_absolute_uri('/atdb/tasks') + query - #else: - #TODO: this doesn't work yet in production - url = request.scheme + "://" + request.get_host() + '/atdb/tasks' + query + if settings.DEV == False: + url = request.build_absolute_uri('/atdb/tasks') + query + else: + url = "https://" + request.get_host() + '/atdb/tasks' + query link = '<a href="' + url + '" target="_blank">' + str(count) + "</a>" except: pass