Как убрать alias из ссылки в twig
Подскажите, пожалуйста, как можно поправить шаблон twig, чтобы в ссылке не отображался alias (который называется index), чтобы было более наглядно, ниже распишу пример.
Есть на сайте раздел /service/rent/, но при переходе по ссылкам в боковом меню, ссылка ведёт на /service/rent/index, что прописать в шаблоне twig (который формирует эти ссылки), чтобы убрать из ссылки alias?
Ниже код из шаблона twig:
{% for m in widget.children %}
<div class="cell margin-bottom-6 text-left" data-equalizer-watch="{{ widget.uniqueId }}-eq" itemscope itemtype="http://schema.org/ImageObject">
<div class="grid-x">
{% if m.pic %}
<div class="cell small-5 medium-24">
<a href="{{ m.url }}" title="{{ m.name }}"><img class="margin-bottom-3" src="/imagetransform/width_450_height_300_fit_2{{ m.pic }}" alt="{{ m.name }}" title="{{ m.name }}" itemprop="contentUrl"></a>
</div>{% endif %}
<div class="cell small-18 medium-24{% if m.pic %} small-offset-1 medium-offset-0{% endif %}">
<h5 class="margin-bottom-3" itemprop="name"><a href="{{ m.url }}" title="{{ m.name }}">{{ m.name|striptags('br') }}</a></h5>
</div>
</div>
<div class="show-for-medium">{{ m.short|raw }}</div>
</div>
{% endfor %}