URL-encode the link to a person's public profile, fixing validation errors.

Commit ready for merge.
 - Legacy-Id: 19494
This commit is contained in:
Lars Eggert 2021-10-29 10:22:59 +00:00
parent 722c59ba8b
commit 4ed19e1bba

View file

@ -17,7 +17,7 @@
{% if user.is_authenticated %}
<li><a rel="nofollow" href="/accounts/logout/" >Sign out</a></li>
<li><a rel="nofollow" href="/accounts/profile/">Account info</a></li>
<li><a href="/person/{{user.person.name}}">Public profile page</a></li>
<li><a href="/person/{{user.person.name|urlencode}}">Public profile page</a></li>
<li><a href="{%url "ietf.cookies.views.preferences" %}" rel="nofollow">Preferences</a></li>
<li><a href="{%url "ietf.ietfauth.views.apikey_index" %}" rel="nofollow">API keys</a></li>
<li><a rel="nofollow" href="/accounts/password/">Change password</a></li>