diff --git a/awx/templates/rest_framework/base.html b/awx/templates/rest_framework/base.html index 8cb5ab97fb..6ed3cd456f 100644 --- a/awx/templates/rest_framework/base.html +++ b/awx/templates/rest_framework/base.html @@ -138,8 +138,10 @@
HTTP {{ response.status_code }} {{ response.status_text }}{% autoescape off %}
 {% for key, val in response_headers.items %}{{ key }}: {{ val|break_long_headers|urlize_quoted_links }}
 {% endfor %}
-{# Original line below had content|urlize_quoted_links; for Ansible Tower disable automatic URL creation here. #}
-{{ content }}
{% endautoescape %} +{# Original line below had the side effect of also escaping content: #} +{# {{ content|urlize_quoted_links }}{% endautoescape %} #} +{# For Ansible Tower, disable automatic URL creation and move content outside of autoescape off block. #} +{% endautoescape %}{{ content }}