smartius smartius - 1 month ago 10
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

Try to use :

{{app.request.uri}}
Comments