From 20354e662589c1f8e76331afa91222f4f3a7e3b9 Mon Sep 17 00:00:00 2001 From: Fritz Michael Gschwantner Date: Thu, 21 Nov 2024 11:30:46 +0000 Subject: [PATCH] Revert 'Add the `turbo-root` meta tag to the back end' (see #7737) Description ----------- Reverts #7597 until https://github.com/hotwired/turbo/issues/912 is fixed in Turbo. Commits ------- 347c3d3e Revert "Add the `turbo-root` meta tag to the back end (see #7597)" --- contao/controllers/BackendMain.php | 2 -- contao/templates/backend/be_main.html5 | 1 - tests/Controller/AbstractBackendControllerTest.php | 1 - 3 files changed, 4 deletions(-) diff --git a/contao/controllers/BackendMain.php b/contao/controllers/BackendMain.php index 88ce3cf508..ba613918a3 100644 --- a/contao/controllers/BackendMain.php +++ b/contao/controllers/BackendMain.php @@ -249,8 +249,6 @@ protected function compileTemplateData(array $data): array $data['menu'] = $twig->render('@ContaoCore/Backend/be_menu.html.twig'); $data['headerMenu'] = $twig->render('@ContaoCore/Backend/be_header_menu.html.twig'); - $data['turboRoot'] = System::getContainer()->getParameter('contao.backend.route_prefix'); - return $data; } } diff --git a/contao/templates/backend/be_main.html5 b/contao/templates/backend/be_main.html5 index b16ed517fa..f11b39bf69 100644 --- a/contao/templates/backend/be_main.html5 +++ b/contao/templates/backend/be_main.html5 @@ -36,7 +36,6 @@ javascripts); ?>"> - attributes ?> data-controller="contao--tooltip"> diff --git a/tests/Controller/AbstractBackendControllerTest.php b/tests/Controller/AbstractBackendControllerTest.php index 1abe7a5f8e..0e3f4839ae 100644 --- a/tests/Controller/AbstractBackendControllerTest.php +++ b/tests/Controller/AbstractBackendControllerTest.php @@ -95,7 +95,6 @@ public function fooAction(): Response 'learnMore' => 'learn more', 'menu' => '', 'headerMenu' => '', - 'turboRoot' => '/contao', 'badgeTitle' => '', 'foo' => 'bar', ];