diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-03-20 19:07:20 +0000 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-03-21 16:41:22 +0000 |
| commit | 32ac60256cd24ec75074cb7add6c47ae49a9e78a (patch) | |
| tree | d8a9d790d7a59850b0148f9b93db6844a222f803 /app/templates/base.html | |
| parent | bbb46ce19a2a83a6a6e547cea2613a3419534bf5 (diff) | |
| download | cheatdb-32ac60256cd24ec75074cb7add6c47ae49a9e78a.tar.xz | |
Add redirect to full user URL
Diffstat (limited to 'app/templates/base.html')
| -rw-r--r-- | app/templates/base.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/templates/base.html b/app/templates/base.html index 6e8c372..687d718 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -37,7 +37,7 @@ </ul> <ul class="nav navbar-nav navbar-right"> {% if current_user.is_authenticated %} - <li><a href="{{ url_for('user_profile_page') }}">{{ current_user.first_name or current_user.username }}</a></li> + <li><a href="{{ url_for('user_profile_page', username=current_user.username) }}">{{ current_user.display_name }}</a></li> <li><a href="{{ url_for('user.logout') }}">Sign out</a></li> {% else %} <li><a href="{{ url_for('user.login') }}">Sign in</a></li> |
