{{ app.request.uri }}
If you want to read it in a variable of the form:
{% set uri = app.request.uri %}
The app global variable contains all sorts of useful shortcuts, such as app.session and app.security.token.user , which refer to services that you can use in the controller.
source share