From 36e58ed7daab5d96b2c2b84c7cf0338ad23804ee Mon Sep 17 00:00:00 2001 From: mancini <mancini@astron.nl> Date: Mon, 11 Jul 2022 09:50:29 +0200 Subject: [PATCH] Typo in monitoring history reverse url --- atdb/taskdatabase/services/algorithms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atdb/taskdatabase/services/algorithms.py b/atdb/taskdatabase/services/algorithms.py index 0e415494..3d241397 100644 --- a/atdb/taskdatabase/services/algorithms.py +++ b/atdb/taskdatabase/services/algorithms.py @@ -251,13 +251,13 @@ def construct_link_to_monitor_history(request, title, name, hostname): try: if settings.DEV == True: - url = request.build_absolute_uri(reverse('monitor')) + '?' + query + url = request.build_absolute_uri(reverse('monitoring')) + '?' + query else: # Unclear why 'build_absolute_uri' doesn't return 'https' in production. # Probably because the https is handled fully outside the container by Traefik # and ATDB is not aware of that. - url = "https://" + request.get_host() + reverse('monitor') + '?' + query + url = "https://" + request.get_host() + reverse('monitoring') + '?' + query link = '<a href="' + url + '" target="_blank">' + title + "</a>" except: pass -- GitLab