get the current path in a Twig (and not the full URL), i.e. I don't want http://localhost:8000/app_dev.php/content/tag/1, I only need /1
Asked
Active
Viewed 863 times
1 Answers
0
I think you have a variable on your route called tag right?
You can get it like this:
{{ app.request.get('tag') }}

Canser Yanbakan
- 3,780
- 3
- 39
- 65