Skip to content

Commit e83444d

Browse files
committed
Fix incorrect link to class docs in catalog
target_url was removed in #856, and all the other class docs interfaces use the code I've changed it to here.
1 parent 61b4675 commit e83444d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esp/templates/inclusion/program/class_catalog_core.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
<b>Materials for this class include:</b>
9696
<span class="doclist">
9797
{% for doc in class.docs_summary %}
98-
<a href="{{ doc.target_url }}">{{ doc.friendly_name }}</a>{% if not forloop.last %},{% endif %}
98+
<a href="/download/{{ doc.hashed_name }}/{{ doc.file_name }}">{{ doc.friendly_name }}</a>{% if not forloop.last %},{% endif %}
9999
{% endfor %}
100100
{% if class.media_count > class.docs_summary|length %}
101101
<b><a href="{{ class.parent_program.get_learn_url }}class_docs/{{ class.id }}">(view all {{ class.media_count }})</a></b>

0 commit comments

Comments
 (0)