Updated: Comment 0
Problem/Motivation
Symfony fullframework does offer two different ways to provide some url in some template: url() and path()
url() just generates an url while path() produces an absolute version, so including the domain and co.
Proposed resolution
Remaining tasks
Decide whether this is really a needed functionality for drupal.
Comments
Comment #1
steveoliver commentedI'd say
{% if path(route_name) === url(route_name, {'absolute': 1}) %}
this.closed
{% endif %}
Also, with a function called "path" in twig, one may expect it at first glance to generate a Drupal path i.e. from a route name.
Comment #2
star-szrComment #3
dawehnerNote: https://www.drupal.org/files/issues/twig_url-2073811-171.patch added one, so I guess this is fixed?
Comment #4
star-szrGreat! :D