Skip to content

Commit

Permalink
Revert 'Add the turbo-root meta tag to the back end' (see #7737)
Browse files Browse the repository at this point in the history
Description
-----------

Reverts #7597 until hotwired/turbo#912 is fixed in Turbo.

Commits
-------

347c3d3e Revert "Add the `turbo-root` meta tag to the back end (see #7597)"
  • Loading branch information
fritzmg authored Nov 21, 2024
1 parent 838f2f9 commit 20354e6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions contao/controllers/BackendMain.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
1 change: 0 additions & 1 deletion contao/templates/backend/be_main.html5
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@

<?php /* If the following hash changes, Turbo will reload the entire page instead of merging contents. */ ?>
<meta data-turbo-track="reload" content="<?= md5($this->stylesheets."\0".$this->javascripts); ?>">
<meta name="turbo-root" content="<?= $this->turboRoot ?>">
</head>
<body id="top" class="be_main<?php if ($this->isPopup): ?> popup<?php endif; ?>"<?= $this->attributes ?> data-controller="contao--tooltip">

Expand Down
1 change: 0 additions & 1 deletion tests/Controller/AbstractBackendControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ public function fooAction(): Response
'learnMore' => 'learn more',
'menu' => '<menu>',
'headerMenu' => '<header_menu>',
'turboRoot' => '/contao',
'badgeTitle' => '',
'foo' => 'bar',
];
Expand Down

0 comments on commit 20354e6

Please sign in to comment.