Skip to main content

Hi,

I am working with Aurena and need to add a command or some kind of hyperlink that opens a PDF file from an online storage drive . The problem is that the instruction navigate checks and opens only URLs that start with http:// or https:// and I need it to open a URL that starts with file:///.

 

How do I customize a command so it will open a URL like that? Or do I have some other option to achieve this?

Hi @juliuskahkonen,

Opening local files is not allowed as you have mentioned. This could be due to some security implications in opening files in the browser as well. As far as I know, this functionality is not yet planned for any upcoming releases either.

I would suggest you to create a topic In Ideation so that it would be considered for implementation in the future:

https://community.ifs.com/ideas

Hope this helps!


Hi @Charith Epitawatta and thank you for your reply.

 

Isn’t there any way I could bypass this check or modify the navigate instruction myself so that it could open these file:/// URLs?

 


Are you maybe able to prepare a custom field/attribute that is of type hyperlink and that contains the URL to the pdf?


Hi @eqbstal ,

Yes i was able to bypass the command http:// -check and add a link that started with file:///. But this still didn’t work.

Like @Charith Epitawatta suggested, the main reason that this does not work are security implementations in modern browsers. Executing files (like in this case PDF) from a website is blocked to protect against malicious intent.


I think that the only way to open a local file is to use Aurena Agent. It has OpenFile command, which opens the given file with the default application.