Skip to content

Commit dfaceb6

Browse files
committed
Point at the datatracker's document pages, instead of directly at the document in question, for documents on a person's profile page. This reverts to the functionality as originally designed, but uses the correct doc.get_absolute_url instead of doc.href() (which incorrectly did the same as get_absolute_url until recently). Fixes issue ietf-tools#2340.
- Legacy-Id: 13989
1 parent 4295396 commit dfaceb6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ietf/templates/person/profile.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ <h2 id="rfcs">RFCs</h2>
6464
<table class="table">
6565
{% for doc in person.rfcs %}
6666
<tr>
67-
<td><a href="{{ doc.href }}">{{ doc.canonical_name }}</a></td>
67+
<td><a href="{{ doc.get_absolute_url }}">{{ doc.canonical_name }}</a></td>
6868
<td>{{ doc.pub_date|date:"b Y"|title|nbsp }}</td>
6969
<td>{{ doc.title }}</td>
7070
</tr>
@@ -80,7 +80,7 @@ <h2 id="drafts">Active Drafts</h2>
8080
<ul>
8181
{% for doc in person.active_drafts %}
8282
<li>
83-
<a href="{{ doc.href }}">{{ doc.canonical_name }}</a>
83+
<a href="{{ doc.get_absolute_url }}">{{ doc.canonical_name }}</a>
8484
</li>
8585
{% endfor %}
8686
</ul>
@@ -94,7 +94,7 @@ <h2>Expired Drafts <small>exluding replaced drafts</small></h2>
9494
<ul>
9595
{% for doc in person.expired_drafts %}
9696
{% if not doc.replaced_by %}
97-
<li><a href="{{ doc.href }}">{{ doc.canonical_name }}</a></li>
97+
<li><a href="{{ doc.get_absolute_url }}">{{ doc.canonical_name }}</a></li>
9898
{% endif %}
9999
{% endfor %}
100100
</ul>

0 commit comments

Comments
 (0)