diff --git a/core/modules/node/templates/node-add-list.html.twig b/core/modules/node/templates/node-add-list.html.twig index 7323896..258d3e6 100644 --- a/core/modules/node/templates/node-add-list.html.twig +++ b/core/modules/node/templates/node-add-list.html.twig @@ -24,7 +24,7 @@ {% else %}

- {% set create_content = url('admin/structure/types/add') %} + {% set create_content = path('node.type_add') %} {% trans %} You have not created any content types yet. Go to the content type creation page to add a new content type. {% endtrans %} diff --git a/core/themes/seven/templates/node-add-list.html.twig b/core/themes/seven/templates/node-add-list.html.twig index 17e4ac4..897dd1e 100644 --- a/core/themes/seven/templates/node-add-list.html.twig +++ b/core/themes/seven/templates/node-add-list.html.twig @@ -8,7 +8,6 @@ * - url: Path to the add content of this type page. * - label: The title of this type of content. * - description: Description of this type of content. - * - add_content_type_url: Path to the add content type page. * * @see template_preprocess_node_add_list() * @see seven_preprocess_node_add_list() @@ -22,7 +21,7 @@ {% else %}

- {% set create_content = url('admin/structure/types/add') %} + {% set create_content = path('node.type_add') %} {% trans %} You have not created any content types yet. Go to the content type creation page to add a new content type. {% endtrans %}