Forum Discussion

Sergey's avatar
Sergey
Contributor III
10 months ago

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

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...

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,

  • 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,

  • db_pdx's avatar
    db_pdx
    Valued Contributor

    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's avatar
      JackLacava
      Honored Contributor

      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 ?

  • Sergey's avatar
    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,

  • NicolasArgente's avatar
    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.

  • SRAI's avatar
    SRAI
    New Contributor III

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