Missing </head> tag in V4.20

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
Hi All,
I've noticed that the </head> tag is not being rendered on any of the sites that I'm running.  Has anyone else noticed this behaviour.  This happens whether I'm using the default theme or the custom one.  The code on the custom theme for example is . . .


    @await Component.InvokeAsync("Favicon")
  @if (displayMiniProfiler)
    {
        <mini-profiler />
    }
    @Html.NopInlineScripts(ResourceLocation.Head)
    <!--Powered by nopCommerce - https://www.nopCommerce.com-->
</head>
<body>
    @RenderBody()


and the rendered html is . . .


<meta name=msapplication-TileColor content=#2d89ef>
<meta name=msapplication-TileImage content=/icons/icons_0/mstile-144x144.png>
<meta name=msapplication-config content=/icons/icons_0/browserconfig.xml>
<meta name=theme-color content=#ffffff>
<body>
<div class=ajax-loading-block-window style=display:none>


I've added a dummy class to the body tag to prove that is the correct file that is getting loaded.
Anyone have some ideas?

Cheers,
Paul
4 years ago
I see a head head in the demo [url=view-source:https://demo.nopcommerce.com/] view-source:https://demo.nopcommerce.com/[/url]

What settings do you have in the General tab for Minification:
Html minification  
JavaScript bundling and minification  
CSS bundling and minification  
Use response compression  
4 years ago
Good response :-)
Currently I have the following enabled:
Html minification
javascript bundling
compression

By unchecking the html minification I now see the closing head tag.  Is this a bug or in some way by design?

Regards,
Paul
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.