Skip to content
Snippets Groups Projects
Commit 36e58ed7 authored by Mattia Mancini's avatar Mattia Mancini
Browse files

Typo in monitoring history reverse url

parent 625f7864
No related branches found
No related tags found
2 merge requests!260Typo in monitoring history reverse url,!259Make url redirect generic
...@@ -251,13 +251,13 @@ def construct_link_to_monitor_history(request, title, name, hostname): ...@@ -251,13 +251,13 @@ def construct_link_to_monitor_history(request, title, name, hostname):
try: try:
if settings.DEV == True: if settings.DEV == True:
url = request.build_absolute_uri(reverse('monitor')) + '?' + query url = request.build_absolute_uri(reverse('monitoring')) + '?' + query
else: else:
# Unclear why 'build_absolute_uri' doesn't return 'https' in production. # Unclear why 'build_absolute_uri' doesn't return 'https' in production.
# Probably because the https is handled fully outside the container by Traefik # Probably because the https is handled fully outside the container by Traefik
# and ATDB is not aware of that. # 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>" link = '<a href="' + url + '" target="_blank">' + title + "</a>"
except: except:
pass pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment