diff --git a/core/modules/book/templates/book-tree.html.twig b/core/modules/book/templates/book-tree.html.twig
index 7a818389ef888ee39ecdd2b7a7c465d139998094..3d3069cb45436c25810ba2e9a0b5c06efba9fd19 100644
--- a/core/modules/book/templates/book-tree.html.twig
+++ b/core/modules/book/templates/book-tree.html.twig
@@ -24,7 +24,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {{ book_tree.book_links(items, attributes, 0) }}
 
diff --git a/core/modules/system/templates/menu.html.twig b/core/modules/system/templates/menu.html.twig
index e7bb57b7e1e4861467a598ca96fca536e88b7d16..b8a9aab2b56ce137775bb96f5522fe9910ff1e54 100644
--- a/core/modules/system/templates/menu.html.twig
+++ b/core/modules/system/templates/menu.html.twig
@@ -24,7 +24,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {{ menus.menu_links(items, attributes, 0) }}
 
diff --git a/core/modules/toolbar/templates/menu--toolbar.html.twig b/core/modules/toolbar/templates/menu--toolbar.html.twig
index a78829986b6c3823ba1204f5e2dad8733819a783..7ba45dba011ffb332e6b8a86b75b3d3ab7adba6c 100644
--- a/core/modules/toolbar/templates/menu--toolbar.html.twig
+++ b/core/modules/toolbar/templates/menu--toolbar.html.twig
@@ -24,7 +24,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {{ menus.menu_links(items, attributes, 0) }}
 
diff --git a/core/profiles/demo_umami/themes/umami/templates/classy/navigation/book-tree.html.twig b/core/profiles/demo_umami/themes/umami/templates/classy/navigation/book-tree.html.twig
index 94fac5598b5780700a112eaf63d9e14859bce1d7..fba921921e8ce419e46d6a7a704d1645f71d01d6 100644
--- a/core/profiles/demo_umami/themes/umami/templates/classy/navigation/book-tree.html.twig
+++ b/core/profiles/demo_umami/themes/umami/templates/classy/navigation/book-tree.html.twig
@@ -22,7 +22,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {{ book_tree.book_links(items, attributes, 0) }}
 
diff --git a/core/profiles/demo_umami/themes/umami/templates/components/navigation/menu--main.html.twig b/core/profiles/demo_umami/themes/umami/templates/components/navigation/menu--main.html.twig
index 6884d81b8c8c49c63787e2126d69c6ea6ad1fb93..ced0de2176a80490cf4e2539393d5ed618f7f00d 100644
--- a/core/profiles/demo_umami/themes/umami/templates/components/navigation/menu--main.html.twig
+++ b/core/profiles/demo_umami/themes/umami/templates/components/navigation/menu--main.html.twig
@@ -23,7 +23,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 
   1. We use menu_name (see above) to create a CSS class name from it.
   See https://www.drupal.org/node/2649076
diff --git a/core/profiles/demo_umami/themes/umami/templates/components/navigation/menu.html.twig b/core/profiles/demo_umami/themes/umami/templates/components/navigation/menu.html.twig
index 0a3742115dd4464588fe5e852c6a921e3515c188..4a599ccc437d63f1d9646534429194127fe1f09c 100644
--- a/core/profiles/demo_umami/themes/umami/templates/components/navigation/menu.html.twig
+++ b/core/profiles/demo_umami/themes/umami/templates/components/navigation/menu.html.twig
@@ -23,7 +23,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 
   1. We use menu_name (see above) to create a CSS class name from it.
   See https://www.drupal.org/node/2649076
diff --git a/core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php b/core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php
index 5a5c69f4abb742ffeeaf09067656ba03e0ecfb92..b58ec3dcb7421012d9856b58fa19ab0b1dcc6003 100644
--- a/core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Theme/ConfirmClassyCopiesTest.php
@@ -772,9 +772,9 @@ protected function getClassyHash($type, $file) {
         'book-export-html.html.twig' => 'd09aadf9e8e05d50145872f86544d0d0',
         'html.html.twig' => '7bc0366efb52d727aa6fb48d4d3d75fb',
         'region.html.twig' => 'b1c621b93e5ab7334151fe31d4c163a8',
-        'menu.html.twig' => 'a85f0d836f62a4a2834934b15b5cc4f3',
+        'menu.html.twig' => '5beee3e850948159f720b76b783dded6',
         'book-all-books-block.html.twig' => '7210413d32aafa0c5413f1c29b9a87cc',
-        'book-tree.html.twig' => '027a2d9aa9d8e13afeb87b2f830f4339',
+        'book-tree.html.twig' => '31372cf50f2c6e0a54a98da7d7219025',
         'links.html.twig' => '158ded06d80f3071b051a3263d9bdeac',
         'vertical-tabs.html.twig' => 'cccdb9b454f5befdfedfc629a6a51e4d',
         'pager.html.twig' => '3ad3ad68fa70d7f6b69676d1e28b0338',
diff --git a/core/themes/bartik/templates/classy/navigation/book-tree.html.twig b/core/themes/bartik/templates/classy/navigation/book-tree.html.twig
index 94fac5598b5780700a112eaf63d9e14859bce1d7..fba921921e8ce419e46d6a7a704d1645f71d01d6 100644
--- a/core/themes/bartik/templates/classy/navigation/book-tree.html.twig
+++ b/core/themes/bartik/templates/classy/navigation/book-tree.html.twig
@@ -22,7 +22,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {{ book_tree.book_links(items, attributes, 0) }}
 
diff --git a/core/themes/bartik/templates/classy/navigation/menu.html.twig b/core/themes/bartik/templates/classy/navigation/menu.html.twig
index b437f8760e978d34f8ce6945969e17abf29f5e6a..ef04cedd1756737f3fb60e8c1890f24242dcdc45 100644
--- a/core/themes/bartik/templates/classy/navigation/menu.html.twig
+++ b/core/themes/bartik/templates/classy/navigation/menu.html.twig
@@ -22,7 +22,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {{ menus.menu_links(items, attributes, 0) }}
 
diff --git a/core/themes/claro/templates/classy/navigation/book-tree.html.twig b/core/themes/claro/templates/classy/navigation/book-tree.html.twig
index 94fac5598b5780700a112eaf63d9e14859bce1d7..fba921921e8ce419e46d6a7a704d1645f71d01d6 100644
--- a/core/themes/claro/templates/classy/navigation/book-tree.html.twig
+++ b/core/themes/claro/templates/classy/navigation/book-tree.html.twig
@@ -22,7 +22,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {{ book_tree.book_links(items, attributes, 0) }}
 
diff --git a/core/themes/claro/templates/classy/navigation/menu.html.twig b/core/themes/claro/templates/classy/navigation/menu.html.twig
index b437f8760e978d34f8ce6945969e17abf29f5e6a..ef04cedd1756737f3fb60e8c1890f24242dcdc45 100644
--- a/core/themes/claro/templates/classy/navigation/menu.html.twig
+++ b/core/themes/claro/templates/classy/navigation/menu.html.twig
@@ -22,7 +22,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {{ menus.menu_links(items, attributes, 0) }}
 
diff --git a/core/themes/claro/templates/navigation/menu--toolbar.html.twig b/core/themes/claro/templates/navigation/menu--toolbar.html.twig
index fd9350d37659a7ccbbb82d97461031414553cea5..ead73a479a50587e148ff29cb70dbae5b3c1a5b8 100644
--- a/core/themes/claro/templates/navigation/menu--toolbar.html.twig
+++ b/core/themes/claro/templates/navigation/menu--toolbar.html.twig
@@ -25,7 +25,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {{ menus.menu_links(items, attributes, 0) }}
 
diff --git a/core/themes/classy/templates/navigation/book-tree.html.twig b/core/themes/classy/templates/navigation/book-tree.html.twig
index 94fac5598b5780700a112eaf63d9e14859bce1d7..fba921921e8ce419e46d6a7a704d1645f71d01d6 100644
--- a/core/themes/classy/templates/navigation/book-tree.html.twig
+++ b/core/themes/classy/templates/navigation/book-tree.html.twig
@@ -22,7 +22,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {{ book_tree.book_links(items, attributes, 0) }}
 
diff --git a/core/themes/classy/templates/navigation/menu.html.twig b/core/themes/classy/templates/navigation/menu.html.twig
index b437f8760e978d34f8ce6945969e17abf29f5e6a..ef04cedd1756737f3fb60e8c1890f24242dcdc45 100644
--- a/core/themes/classy/templates/navigation/menu.html.twig
+++ b/core/themes/classy/templates/navigation/menu.html.twig
@@ -22,7 +22,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {{ menus.menu_links(items, attributes, 0) }}
 
diff --git a/core/themes/olivero/templates/navigation/book-tree.html.twig b/core/themes/olivero/templates/navigation/book-tree.html.twig
index ff02e64cfbab53fc8e33aba3431bfdd292b12366..bc16f5acce259177d261832eb37fde866e2747d4 100644
--- a/core/themes/olivero/templates/navigation/book-tree.html.twig
+++ b/core/themes/olivero/templates/navigation/book-tree.html.twig
@@ -22,7 +22,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {{ book_tree.book_links(items, attributes, 0) }}
 
diff --git a/core/themes/olivero/templates/navigation/menu--primary-menu.html.twig b/core/themes/olivero/templates/navigation/menu--primary-menu.html.twig
index 20dcd1915fe1c7a7581d79195d8000d277622e0d..0338c1a1acdc44a1fc88edd4ee3f701ed2752699 100644
--- a/core/themes/olivero/templates/navigation/menu--primary-menu.html.twig
+++ b/core/themes/olivero/templates/navigation/menu--primary-menu.html.twig
@@ -26,7 +26,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {% set attributes = attributes.addClass('menu') %}
 {{ menus.menu_links(items, attributes, 0, 'primary-menu-item-') }}
diff --git a/core/themes/olivero/templates/navigation/menu--secondary-menu.html.twig b/core/themes/olivero/templates/navigation/menu--secondary-menu.html.twig
index 27520da59eaf1119f0be8a82d05a41f5d0ceb435..68d1b25b7d14182107bc2534afdcf718f963f121 100644
--- a/core/themes/olivero/templates/navigation/menu--secondary-menu.html.twig
+++ b/core/themes/olivero/templates/navigation/menu--secondary-menu.html.twig
@@ -26,7 +26,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {% set attributes = attributes.addClass('menu') %}
 {{ menus.menu_links(items, attributes, 0) }}
diff --git a/core/themes/olivero/templates/navigation/menu.html.twig b/core/themes/olivero/templates/navigation/menu.html.twig
index f825ae574b51969f4f3d99a2c2fede309e69c72e..1f7eda20267be0d613c82068664d3fd93bd0b62b 100644
--- a/core/themes/olivero/templates/navigation/menu.html.twig
+++ b/core/themes/olivero/templates/navigation/menu.html.twig
@@ -24,7 +24,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {% set attributes = attributes.addClass('menu') %}
 {{ menus.menu_links(items, attributes, 0) }}
diff --git a/core/themes/seven/templates/classy/navigation/book-tree.html.twig b/core/themes/seven/templates/classy/navigation/book-tree.html.twig
index 94fac5598b5780700a112eaf63d9e14859bce1d7..fba921921e8ce419e46d6a7a704d1645f71d01d6 100644
--- a/core/themes/seven/templates/classy/navigation/book-tree.html.twig
+++ b/core/themes/seven/templates/classy/navigation/book-tree.html.twig
@@ -22,7 +22,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {{ book_tree.book_links(items, attributes, 0) }}
 
diff --git a/core/themes/seven/templates/classy/navigation/menu.html.twig b/core/themes/seven/templates/classy/navigation/menu.html.twig
index b437f8760e978d34f8ce6945969e17abf29f5e6a..ef04cedd1756737f3fb60e8c1890f24242dcdc45 100644
--- a/core/themes/seven/templates/classy/navigation/menu.html.twig
+++ b/core/themes/seven/templates/classy/navigation/menu.html.twig
@@ -22,7 +22,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {{ menus.menu_links(items, attributes, 0) }}
 
diff --git a/core/themes/stable/templates/navigation/book-tree.html.twig b/core/themes/stable/templates/navigation/book-tree.html.twig
index 6f4d3ad0a796ece0a6882270509308a71f2f9bb2..bbb5c93a976774c396b42a3a1c100e64a93a34b8 100644
--- a/core/themes/stable/templates/navigation/book-tree.html.twig
+++ b/core/themes/stable/templates/navigation/book-tree.html.twig
@@ -22,7 +22,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {{ book_tree.book_links(items, attributes, 0) }}
 
diff --git a/core/themes/stable/templates/navigation/menu--toolbar.html.twig b/core/themes/stable/templates/navigation/menu--toolbar.html.twig
index c9702f5c06e505f5554b59c6547303a8d8cfdab7..2e6fd1735ce35d5b32fec71ab364e47039d73b2b 100644
--- a/core/themes/stable/templates/navigation/menu--toolbar.html.twig
+++ b/core/themes/stable/templates/navigation/menu--toolbar.html.twig
@@ -22,7 +22,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {{ menus.menu_links(items, attributes, 0) }}
 
diff --git a/core/themes/stable/templates/navigation/menu.html.twig b/core/themes/stable/templates/navigation/menu.html.twig
index 9ad847475446c0b2d4d56a9b145a24845363ea77..ee1d534e478fe57346053d3e4eb0a7689598f993 100644
--- a/core/themes/stable/templates/navigation/menu.html.twig
+++ b/core/themes/stable/templates/navigation/menu.html.twig
@@ -22,7 +22,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {{ menus.menu_links(items, attributes, 0) }}
 
diff --git a/core/themes/stable9/templates/navigation/book-tree.html.twig b/core/themes/stable9/templates/navigation/book-tree.html.twig
index 6f4d3ad0a796ece0a6882270509308a71f2f9bb2..bbb5c93a976774c396b42a3a1c100e64a93a34b8 100644
--- a/core/themes/stable9/templates/navigation/book-tree.html.twig
+++ b/core/themes/stable9/templates/navigation/book-tree.html.twig
@@ -22,7 +22,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {{ book_tree.book_links(items, attributes, 0) }}
 
diff --git a/core/themes/stable9/templates/navigation/menu--toolbar.html.twig b/core/themes/stable9/templates/navigation/menu--toolbar.html.twig
index c9702f5c06e505f5554b59c6547303a8d8cfdab7..2e6fd1735ce35d5b32fec71ab364e47039d73b2b 100644
--- a/core/themes/stable9/templates/navigation/menu--toolbar.html.twig
+++ b/core/themes/stable9/templates/navigation/menu--toolbar.html.twig
@@ -22,7 +22,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {{ menus.menu_links(items, attributes, 0) }}
 
diff --git a/core/themes/stable9/templates/navigation/menu.html.twig b/core/themes/stable9/templates/navigation/menu.html.twig
index 9ad847475446c0b2d4d56a9b145a24845363ea77..ee1d534e478fe57346053d3e4eb0a7689598f993 100644
--- a/core/themes/stable9/templates/navigation/menu.html.twig
+++ b/core/themes/stable9/templates/navigation/menu.html.twig
@@ -22,7 +22,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {{ menus.menu_links(items, attributes, 0) }}
 
diff --git a/core/themes/starterkit_theme/templates/navigation/book-tree.html.twig b/core/themes/starterkit_theme/templates/navigation/book-tree.html.twig
index 94fac5598b5780700a112eaf63d9e14859bce1d7..fba921921e8ce419e46d6a7a704d1645f71d01d6 100644
--- a/core/themes/starterkit_theme/templates/navigation/book-tree.html.twig
+++ b/core/themes/starterkit_theme/templates/navigation/book-tree.html.twig
@@ -22,7 +22,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {{ book_tree.book_links(items, attributes, 0) }}
 
diff --git a/core/themes/starterkit_theme/templates/navigation/menu.html.twig b/core/themes/starterkit_theme/templates/navigation/menu.html.twig
index b437f8760e978d34f8ce6945969e17abf29f5e6a..ef04cedd1756737f3fb60e8c1890f24242dcdc45 100644
--- a/core/themes/starterkit_theme/templates/navigation/menu.html.twig
+++ b/core/themes/starterkit_theme/templates/navigation/menu.html.twig
@@ -22,7 +22,7 @@
 
 {#
   We call a macro which calls itself to render the full tree.
-  @see https://twig.symfony.com/doc/1.x/tags/macro.html
+  @see https://twig.symfony.com/doc/3.x/tags/macro.html
 #}
 {{ menus.menu_links(items, attributes, 0) }}