• Not Answered

URLRendering does not remove outside Body tag

Hello.I want to show a external web page as iframe.

I found that URLRendering can be used to meet that.

And from the documents I learned that URLRendering is speciification to remove outside Body tag in reference destination.

 

But when I used URLRendering,it referenced elements outside the body tag.

As a result, there are multiple html tags and body tags.

Please let me know if something is wrong.

I'm using Sitecore 8.2.

I tried it as follows.

 

Inserted my URLRendering from template and entered URL parameter.

 

The cshtml file looks like this.

<html>
<head>
</head>
<body>
    @Html.Sitecore().Placeholder("gadget_main")
</body>
</html>

The HTML source to be referenced is as follows.

<html>
    <head>
    </head>
    <body>
        URLRendering Test Page.<br>
    </body>
</html>

When accessed from the client machine, it looks like the following.

<html>
<head>
</head>
<body>
    <html>
    <head>
    </head>
    <body>
        URLRendering Test Page.<br>
    </body>
</html>
</body>

</html>