Skip to content

Commit baa6b07

Browse files
stsewdagjohnson
authored andcommitted
Check for http protocol before urlize (#3755)
1 parent b4ed4df commit baa6b07

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

readthedocs/templates/core/project_detail_right.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77
{% block repo %}
88
{% if project.repo %}
99
<h3>{% trans "Repository" %}</h3>
10-
<p class="detail-long">{{ project.repo|urlize }}</p>
10+
<p class="detail-long">
11+
{% if project.repo|slice:':4' == 'http' %}
12+
{{ project.repo|urlize }}
13+
{% else %}
14+
{{ project.repo }}
15+
{% endif %}
16+
</p>
1117
{% endif %}
1218
{% endblock %}
1319

0 commit comments

Comments
 (0)