Skip to content

Commit

Permalink
Explicitly set next value to the path the request originated from #72
Browse files Browse the repository at this point in the history
  • Loading branch information
4lm committed Sep 19, 2019
1 parent cdc2dcb commit 6e5f7c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/stemp_abw/navigation_app.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<div class="menu">
<form id="set-lang-form" action="{% url 'stemp_abw:set_language' %}" method="post">
{% csrf_token %}
<input name="next" type="hidden" value="{{ request.path }}"/>
<select class="dropdown menu-form-dropdown" name="language">
{% for language in languages %}
{% get_language_info for language as lang %}
Expand Down
1 change: 1 addition & 0 deletions templates/stemp_abw/navigation_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
<div class="menu">
<form id="set-lang-form" action="{% url 'stemp_abw:set_language' %}" method="post">
{% csrf_token %}
<input name="next" type="hidden" value="{{ request.path }}"/>
<select class="dropdown menu-form-dropdown" name="language">
{% for language in languages %}
{% get_language_info for language as lang %}
Expand Down

0 comments on commit 6e5f7c7

Please sign in to comment.