Skip to content

Commit 08b0633

Browse files
Make the rest template logout return you to the same location in the API
1 parent 6a33541 commit 08b0633

File tree

1 file changed

+1
-1
lines changed
  • ansible_base/lib/drf_templates/rest_framework

1 file changed

+1
-1
lines changed

ansible_base/lib/drf_templates/rest_framework/api.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
</div>
7575
{{ block.super }}
7676
<script src="{% static 'api/api.js' %}?v={{ django_app_version }}"></script>
77-
<form name="logoutForm" action="{% url 'logout' %}?next=/api/django_app/v1/" role="form" method="post">
77+
<form name="logoutForm" action="{% url 'logout' %}?next={{ request.path }}" role="form" method="post">
7878
{% csrf_token %}
7979
</form>
8080
{% endblock %}

0 commit comments

Comments
 (0)