summaryrefslogtreecommitdiffhomepage
path: root/apioforum/templates/base.html
diff options
context:
space:
mode:
authorubq323 <ubq323>2021-06-12 22:58:01 +0000
committerubq323 <ubq323>2021-06-12 22:58:01 +0000
commite32815acc670428bdef698cdaec692cf5bcd8ae6 (patch)
treea3375f4c2582a71a55095ae1a783bee822395faa /apioforum/templates/base.html
parent7c84ebbb1a73527cb50f7536df8ad47ef9331a2c (diff)
auth pages less irritating
Diffstat (limited to 'apioforum/templates/base.html')
-rw-r--r--apioforum/templates/base.html18
1 files changed, 15 insertions, 3 deletions
diff --git a/apioforum/templates/base.html b/apioforum/templates/base.html
index 847b8b2..f81f413 100644
--- a/apioforum/templates/base.html
+++ b/apioforum/templates/base.html
@@ -17,10 +17,22 @@
{% if g.user %}
<li>{{ g.user }}</li>
- <li><a href="{{ url_for('auth.logout') }}">logout</a></li>
+ <li>
+ <a href="{{ url_for('auth.logout',next=request.path) }}">
+ logout
+ </a>
+ </li>
{% else %}
- <li><a href="{{ url_for('auth.login') }}">login</a></li>
- <li><a href="{{ url_for('auth.register') }}">register</a></li>
+ <li>
+ <a href="{{ url_for('auth.login',next=request.path) }}">
+ login
+ </a>
+ </li>
+ <li>
+ <a href="{{ url_for('auth.register',next=request.path) }}">
+ register
+ </a>
+ </li>
{% endif %}
</ul>
</nav>