Generate an internal URL in twig I want to generate an internal URL in my twig template
Here is my code but it's not working

{% if(is_admin) %}
                    &lt;li class="edit-sidebar-menu"&gt;
                        &lt;a href="{{ url('admin/structure/menu/manage/fixed-sidebar-menu') }}"&gt;Edit Menu&lt;/a&gt;
                    &lt;/li&gt;
{% endif%}
To generate an internal url in Twig you can follow these steps:


Install the module Devel.
Go to Routes Info (/devel/routes) and search in the browser for the path :





Add the route name and the route parameter to url():


&lt;a href="{{ url('entity.menu.edit_form', {'menu': 'fixed-sidebar-menu'}) }}"&gt;Edit Menu&lt;/a&gt;