Issue in Web Content and File Viewer component to directly open a HTML file in a browser

Sergey
Contributor III

Dear community,

I currently have an html document which is located in the file Explorer under "Documents/Public" folder.

I am trying to get this HTML document to be presented into the components, embedded in a dashboard. However, with either a Web Content component or a File Viewer component (which will pinpoint to this specific file in Application Database File, as soon as I open the dashboard, it will load the html page into my default browser...

Sergey_0-1707407991556.png

I am using OS v8.1 ... is it a known bug or the expected behaviour ?

What is even more strange, directing the Full File Name to a URL will correctly open a document in a dashboard ...

Regards,

1 ACCEPTED SOLUTION

Sergey
Contributor III

Hi !

I got the message it was not considered as a "bug" ... There is a workaround though !

The workaround would be to use File Viewer component to refer to the .html page which should be on the server. For instance, I refer to "file://localhost/c:/pathtofolderyouwant/confirmation.html" in file viewer, and I chose a "URL" type, then it opens in the application as expected !

Regards,

View solution in original post

8 REPLIES 8

db_pdx
Contributor III

I ran into this as well. Was hoping to use a static site generator for dashboard help pages and have the content saved as dashboard files.  But the web viewer component was opening everything in a local client browser, not the dashboard component.

Let's claim its a bug so they fix it 😉

JackLacava
Community Manager
Community Manager

I agree that this looks like a bug, happening as soon as you specify the content as coming from a file rather than URL. @Sergey can you file it with Support please ?

SRAI
New Contributor III

Same issue. Let us know if you find a solution or reply from OS. Thanks.

NicolasArgente
Valued Contributor

@Sergey what is the status of this bug? Any news?
Or did you find a workaround?

Connect with me on:
LinkedIn: https://www.linkedin.com/in/nicolas-argente/
Website: https://aiqos.io
If you want to lift yourself up, lift up someone else.

Sergey
Contributor III

Hi !

I got the message it was not considered as a "bug" ... There is a workaround though !

The workaround would be to use File Viewer component to refer to the .html page which should be on the server. For instance, I refer to "file://localhost/c:/pathtofolderyouwant/confirmation.html" in file viewer, and I chose a "URL" type, then it opens in the application as expected !

Regards,

@Sergey I added the file under FileShare/Applications/Golfstream/Contents/test.html and then I added this path in the fileviewer as URL : file:///D:/OneStream/Fileshare/Applications/Golfstream/Contents/test.html
It is indeed reading something within the dashboard but it returns an error  when i look at the HTML console on my computer : 
Not allowed to load local resource: file:///D:/OneStream/Fileshare/Applications/Golfstream/Contents/test.html

However, when I run this from my local browser on the on-prem server, the page is returned fine.

Connect with me on:
LinkedIn: https://www.linkedin.com/in/nicolas-argente/
Website: https://aiqos.io
If you want to lift yourself up, lift up someone else.

NicolasArgente
Valued Contributor

Thanks for your update @Sergey . FYI, I contacted OS last week and they mentionned that they are aware of this "malfunction" (did you noticed, i cleverly avoided the word "bug" 😂)  They noted it is an issue that will be solved, but no idea when.

Connect with me on:
LinkedIn: https://www.linkedin.com/in/nicolas-argente/
Website: https://aiqos.io
If you want to lift yourself up, lift up someone else.

We are looking into simple static site solutions as well since "no idea when" is how must of our bug reports and enhancement requests have gone.

If others are curious we are exploring:

Material MkDocs

Docusaurus

GitBook

Bookstackapp