html page with embedded javascript link to access a vaadin web application

One of the third party reporting softwares that can be accessed via my vaadin application has a function to allow users to copy an embedded javascript link,
i.e.
User can copy the link onto a notepad and save the page to be an html page. In theory, they should be able to double click on the page, and it should open up the above link which is a vaadin login page (clicking on the link itself does take user to the login page). However, it opens up a blank page, and the browser console shows error "Refused to execute script from the link because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.

Is there anything I can do to make the html page work? Thanks.

Based on your description the problem is somewhere in “third party reporting softwares”. Vaadin application can be addressed with URL (you should not need JavaScript there), just URL. If you use Navigator with the views, you can address specific views as well.