I feel a bit dummy as I can't make it work..
I'm trying to check if a string contains substring in my twig.
{% set url = url('<current>') %}
{{ url }}
{% if 'my-delivery' in url %}
//print something
{% endif %}
The url is printed outside the if statement but it doesn't enter the if statement and the url contains 'my-delivery'.
Any idea why it doesn't work?