Reputation: 1564
Using a confluence page in our intranet, I want to design a simple page that allows my colleagues a quick access to some working material, namely links to
I thought this would be as simple as the following:
<!DOCTYPE html>
<html>
<body>
<ul class = "navmenu">
<li><a href="L:\HR\Info_Pool\Infopool_R9.accdb" target="iframe_m1">Example 1 MS Access</a></li>
<li><a href="\\home-ch\home-ch$\B036081\Martin\01_Skripting\04_html\HR-Einstiegsseite\test_excel.xlsx">Example 2 Excel</a></li>
<li><a href="\\home-ch\home-ch$\B036081\Martin\01_Skripting\04_html\HR-Einstiegsseite\Test.txt">Example 3 Txt</a></li>
<li><a href="https://stackoverflow.com/questions/ask">Example 4 Link</a></li>
</ul>
</body>
<html>
However, whenever linking something that is neither a html
nor textfile, the user gets prompted to download (thereby duplicate), when all i want to do is to provide a link to the file.
Is there any easy way to achieve this, while keeping scripts to a minimum (mainly because either windows defender or confluence seem to block the scripting part from my webpages), or do i have to refer to a locally saved HTA-File?
Upvotes: 1
Views: 3070
Reputation: 24147
Browsers know and understand web pages (HTML + images, scripts and CSS) but pretty much everything else is an "unknown" to them, and will lead to a download prompt, with just 2 general ways to avoid this:
If you don't have such plugins, or can't use them, then a download will be unavoidable.
Upvotes: 1