Hello,
I'm building a new website, and when I activate the "maintenance mode" I notice in the source code that this line is duplicated:
<meta charset="utf-8">
The beginning of the source code looks like this:
<!doctype html>
<html class="coming-soon" lang="es" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta charset="utf-8">
...
I have been doing some research and I think the problem is in line 48 of the file:
\plugins\system\helixultimate\overrides\layouts\comingsoon.php
This meta tag is included here, and subsequently a call is made, in line 51, to:
$theme->head();
This call will end up calling the MetasRender that will add the duplicated meta tag again.
\libraries\src\Document\Renderer\Html\MetasRenderer.php
Lines 99-102:
// Generate charset when using HTML5 (should happen first)
if ($this->_doc->isHtml5()) {
$buffer .= $tab . '<meta charset="' . $this->_doc->getCharset() . '">' . $lnEnd;
}
Joomla: 5.2.6
Helix Ultimate: 2.1.2