smartius smartius - 9 months ago 70
Twig Question

How to get current absolute url in twig without rendering route?

In twig I need to get the current full uri (url + uri ) without render it it like

path('route_test', {param1:1})


How to get it ?

Answer Source

Try to use :

{{app.request.uri}}