简体   繁体   中英

edge policy IntranetFileLinksEnabled enabled does not open file

Last week Edge 95 was released bringing the new and long awaiting Intr.netFileLinksEnabled policy.

Testing this I encounter a different behavior than expected.
Having the following test html file with links on a web-server eg http://demohost/ and having http://demohost/ added as "local-intr.net" site.
Clicking the file links on eg http://demohost/test.html , I expect the file to be opened directly (eg docx in MS Word, pdf in Acrobat Reader, txt in Notepad...):

<a href="file://power/share/demo.txt">file://power/share/demo.txt</a><br/>
<a href="file://power/share/demo.docx">file://power/share/demo.docx</a><br/>
<a href="file://power/share/demo.pdf">file://power/share/demo.pdf</a><br/>
<a href="file://power/share/demo.html">file://power/share/demo.html</a><br/>

But instead the share is opened in the explorer and the file is selected, but not opened. eg demo.docx or demo.pdf:

在此处输入图像描述

Are there any additional policies I have to configure to establish a similar behavior as the Inte.net Explorer used to have? (actually opening the files)

Result of edge://policy/ : 在此处输入图像描述

EDIT: I tried out a lot of different GPO settings in "Microsoft Edge" and "Inte.net Explorer" category, eg PopupsAllowedForUrls . Didn't find a solution.

EDIT2: Also file links to a drive eg file://D:/temp/demo.txt are blocked completely.

This is by design and for sure because of security purposes.

If you read the policy documentation carefully, it is really good documented what is going to happen:

This setting allows file URL links to intr.net zone files from intr.net zone HTTPS websites to open Windows File Explorer for that file or directory.

If you enable this policy, intr.net zone file URL links originating from intr.net zone HTTPS pages will open Windows File Explorer to the parent directory of the file and select the file . Intr.net zone directory URL links originating from intr.net zone HTTPS pages will open Windows File Explorer to the directory with no items in the directory selected .

If you disable or don't configure this policy, file URL links will not open.

Microsoft Edge uses the definition of intr.net zone as configured for Inte.net Explorer. Note that https://localhost/ is specifically blocked as an exception of allowed intr.net zone host, while loopback addresses (127.0.0.*, [::1]) are considered inte.net zone by default.

Users may opt out of prompts on a per-protocol/per-site basis unless the ExternalProtocolDialogShowAlwaysOpenCheckbox policy is disabled.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM