Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jukka-Pekka Keisala 90 posts 226 karma points
    Jun 20, 2023 @ 07:32
    Jukka-Pekka Keisala
    0

    Components wrapped in unnecessary <html> tags after update to v8.18.8

    After patching Umbraco 8 to the latest build I can see there are tons of tags in the rendered source code. Seems like razor components are wrapped to unnessary tags like this:

    <html>
    <head>
    </head>
    <body>
    <ACTUAL COMPONENT HTML HERE>
    </body>
    </html>
    

    Maybe like some setting in web.config is off, any ideas?

  • Marc Goodson 2155 posts 14408 karma points MVP 9x c-trib
    Jun 20, 2023 @ 08:03
    Marc Goodson
    0

    Hi Jukka-Pekka

    Check your Views folder for a new _layout.cshtml file that probably contains the extraneous Html

    and a new _ViewStart.cshtml file which is probably adding the rule for all your views to use that _layout.cshtml file!

    Or at least, I've had that before do a similar thing to what you describe!

    regards

    Marc

Please Sign in or register to post replies

Write your reply to:

Draft