Skip to content

Instantly share code, notes, and snippets.

@lotsofcode
Created May 13, 2015 13:56
Show Gist options
  • Save lotsofcode/76dc3e02f248b9d81465 to your computer and use it in GitHub Desktop.
Save lotsofcode/76dc3e02f248b9d81465 to your computer and use it in GitHub Desktop.
twig current path
{% set currentPath = path(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')) %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment