Merge pull request #1240 from bookwyrm-social/login-redirect

Stay on page when logging in from top bar
This commit is contained in:
Mouse Reeve 2021-08-02 17:39:16 -06:00 committed by GitHub
commit dca7057745
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,7 +151,7 @@
{% if request.path != '/login' and request.path != '/login/' %}
<div class="columns">
<div class="column">
<form name="login" method="post" action="/login">
<form name="login" method="post" action="{% url 'login' %}?next={{ request.path }}">
{% csrf_token %}
<div class="columns is-variable is-1">
<div class="column">