summaryrefslogtreecommitdiffhomepage
path: root/apioforum/templates/base.html
diff options
context:
space:
mode:
authorubq323 <ubq323>2021-06-15 20:25:49 +0000
committerubq323 <ubq323>2021-06-15 20:25:49 +0000
commitb558787d8146894709c42340f85c5bea4418e081 (patch)
treefa919101fd36d98351a824432c582e8a06264347 /apioforum/templates/base.html
parenta4461d18a3a4b1a8317747242465f1c7f7caa08f (diff)
fix crash when logging in or out on search results page
Diffstat (limited to 'apioforum/templates/base.html')
-rw-r--r--apioforum/templates/base.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/apioforum/templates/base.html b/apioforum/templates/base.html
index ba96c91..87b142f 100644
--- a/apioforum/templates/base.html
+++ b/apioforum/templates/base.html
@@ -21,18 +21,18 @@
{% if g.user %}
<p>{{ g.user }}</p>
<p>
- <a href="{{ url_for('auth.logout',next=request.path) }}">
+ <a href="{{ url_for('auth.logout',next=path_for_next) }}">
logout
</a>
</p>
{% else %}
<p>
- <a href="{{ url_for('auth.login',next=request.path) }}">
+ <a href="{{ url_for('auth.login',next=path_for_next) }}">
login
</a>
</p>
<p>
- <a href="{{ url_for('auth.register',next=request.path) }}">
+ <a href="{{ url_for('auth.register',next=path_for_next) }}">
register
</a>
</p>