Print URL With Request Parameters/Arguments - Python Flask / Jinja2
Updated 2026-09-23: updated both snippets for Python 3.
You need to add the following to your jinja2 template:
{{ request.path ~ '?' ~ request.query_string.decode('utf-8') }}
You can also print only the Get Variables / URL Parameters / Argument String with the following:
print(request.query_string.decode('utf-8'))
The example is available here: http://stackoverflow.com/a/11781872/1364191