Stay on page when logging in from top bar

Was this bugging other people? It bugged me to no end.
This commit is contained in:
Mouse Reeve 2021-08-02 16:24:36 -07:00
parent 7980d74b01
commit 806638888e

View file

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