question

VijiAvinesh-9283 avatar image
0 Votes"
VijiAvinesh-9283 asked ChelseaWu-MSFT commented

Issue in loading html files in SharePoint online(modern site)

We are migrating our existing application from SP 2016 on-premise to SharePoint online. The on-prem application is having lots of FAQ/Help files added as an html file and it will get loaded to another html page through iframe. When we migrated this to online, the html is not getting rendered instead its always downloading the file. we tried to replace the html with aspx, still we are facing issue with loading the file in IFrame. Could you please help to identify a suitable workaround for this html rendering issue.

Thank and Regards

Viji Avinesh

office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ChelseaWu-MSFT avatar image
0 Votes"
ChelseaWu-MSFT answered ChelseaWu-MSFT commented

Here are a few options:

  1. Use the sharing link for the HTML file instead of the absolute URL (which ends with .HTML). Put the file in the Site Assets library and create a sharing link for it.

  2. Use the modern Script editor web part to embed the ASPX file (as I tested HTML files get downloaded as well), or add the HTML source code directly.

In addition, here is a relative UserVoice post you can vote for if you have the same request: Use embed code to display an html page in a SiteAssets library.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @VijiAvinesh-9283 , do you have any progress on this thread? Please feel free to let us know if you need further assistance.

0 Votes 0 ·

Hi @VijiAvinesh-9283 , I’m checking on how things are going on with this thread. Please remember to update this thread if you have any progress.

0 Votes 0 ·