FIX: Embroider breaking index html structure (#23811)

The custom html elements we were using for bootstraping were causing Embroider to end the `<head>` tag and immediately start `<body>`. As a result most of `<meta>` tags ended up in the `<body>`.

That mean (among possibly other issues) that the app did not have CSRF token set properly on launch (in the development env)
This commit is contained in:
Jarek Radosz
2023-10-06 13:41:47 +02:00
committed by GitHub
parent f21a4a6cb3
commit bd52b1ec7b
2 changed files with 11 additions and 14 deletions
@@ -209,10 +209,7 @@ function replaceIn(bootstrap, template, id, headers, baseURL) {
if (id === "html-tag") {
return template.replace(`<html>`, contents);
} else {
return template.replace(
`<bootstrap-content key="${id}"></bootstrap-content>`,
contents
);
return template.replace(`<!-- bootstrap-content ${id} -->`, contents);
}
}