mirror of
https://github.com/discourse/discourse.git
synced 2026-08-08 04:04:59 -05:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user