Skip to content
Snippets Groups Projects

Typo in monitoring history reverse url

Merged Mattia Mancini requested to merge make_path_redirect_generic into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading