Length twig for string is miscounting

386 Views Asked by At

Using twig function url('< current >') in a Drupal 8 template which one gives you the full URL, it prints 'http://192.168.0.133/drupal-8.5.2/home', but when I use the filter length it returns the value 3, and is not an array.

I can't length filter count some characters? I also tried to split it with delimiter '/' and returns null.

0

There are 0 best solutions below