Skip to content
Snippets Groups Projects
Commit 6cb9356b authored by Nico Vermaas's avatar Nico Vermaas
Browse files

Merge branch 'make_path_redirect_generic' into 'master'

Typo in monitoring history reverse url

See merge request !260
parents 625f7864 36e58ed7
No related branches found
No related tags found
2 merge requests!260Typo in monitoring history reverse url,!259Make url redirect generic
Pipeline #33123 passed
...@@ -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