Skip to content

Commit 7aff8e8

Browse files
committed
issue2550912: Jinja2 template needs fixing of value for __came_from
1 parent 1b301de commit 7aff8e8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ Fixed:
8888
for translations. (Report: John Rouillard; Fix: Christof Meerwald)
8989
- Cleanup code by linting using flake8. (John Rouillard)
9090
- Cleanup code by security linting using bandit. (John Rouillard)
91+
- issue2550912 - fixed missing query string in __came_from for jinja2
92+
template. (Christof Meerwald)
9193

9294
2019-10-23 2.0.0 alpha 0
9395

share/roundup/templates/jinja2/html/layout/navigation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@
140140
</li>
141141
</ul>
142142
<input type="hidden" name="@action" value="Login">
143-
<input type="hidden" name="__came_from" value='{{request.base}}{{request.env.PATH_INFO}}'>
143+
<input type="hidden" name="__came_from" value="{{ request.base }}{{ request.env.PATH_INFO }}{% if request.env.QUERY_STRING %}?{{ request.env.QUERY_STRING }}{% endif %}">
144144
</form>
145145
<hr>
146146
{% else %}

0 commit comments

Comments
 (0)