diff --git a/website/web/__init__.py b/website/web/__init__.py index fd998681..7596e479 100644 --- a/website/web/__init__.py +++ b/website/web/__init__.py @@ -402,7 +402,7 @@ def tree(tree_uuid: str, urlnode_uuid: Optional[str]=None): return render_template('tree.html', tree_json=tree_json, start_time=start_time, user_agent=user_agent, root_url=root_url, tree_uuid=tree_uuid, meta=meta, enable_mail_notification=enable_mail_notification, - urlnode_uuid=urlnode_uuid) + urlnode_uuid=urlnode_uuid, has_redirects=True if cache['redirects'] else False) except NoValidHarFile as e: return render_template('error.html', error_message=e) diff --git a/website/web/templates/tree.html b/website/web/templates/tree.html index 6c1aaa04..d6ee2f61 100644 --- a/website/web/templates/tree.html +++ b/website/web/templates/tree.html @@ -87,6 +87,11 @@ Show Statistics + {% if has_redirects %} +