Skip to content

Commit 4ed19e1

Browse files
committed
URL-encode the link to a person's public profile, fixing validation errors.
Commit ready for merge. - Legacy-Id: 19494
1 parent 722c59b commit 4ed19e1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/templates/base/menu_user.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{% if user.is_authenticated %}
1818
<li><a rel="nofollow" href="/accounts/logout/" >Sign out</a></li>
1919
<li><a rel="nofollow" href="/accounts/profile/">Account info</a></li>
20-
<li><a href="/person/{{user.person.name}}">Public profile page</a></li>
20+
<li><a href="/person/{{user.person.name|urlencode}}">Public profile page</a></li>
2121
<li><a href="{%url "ietf.cookies.views.preferences" %}" rel="nofollow">Preferences</a></li>
2222
<li><a href="{%url "ietf.ietfauth.views.apikey_index" %}" rel="nofollow">API keys</a></li>
2323
<li><a rel="nofollow" href="/accounts/password/">Change password</a></li>
@@ -69,4 +69,4 @@
6969
<li {%if flavor == "top" %}class="dropdown-header hidden-xs"{% else %}class="nav-header"{% endif %}>RFC Editor</li>
7070
<li><a href="{% url "ietf.sync.views.discrepancies" %}">Sync discrepancies</a></li>
7171
{% endif %}
72-
{% if flavor == "top" %}</ul>{% endif %}
72+
{% if flavor == "top" %}</ul>{% endif %}

0 commit comments

Comments
 (0)