0

Drupal HTML WYSIWY Filter strips "file:///" from hyperlinks even though I have allowed the HTML attribute a[*], what am I missing?

I want to open a local path \myserver\folder\file and thus I added the protocol in the link dialogue and can see in the plain text editor that the href is created properly:

<a href="file:///\\myserver\folder\file" rel="nofollow" target="_blank">test</a>

but when I preview/save it that gets stripped and thus is not working

<a href="///\\myserver\folder\file" rel="nofollow" target="_blank">test</a>
Markus
  • 458
  • 4
  • 16
  • I managed to make file protocol work via filter protocol module (see below answer) but only works in IE and only reaches the server path without spaces while %20 doesn't work either. – Markus Nov 27 '18 at 15:18

1 Answers1

0

Filter Protocol module allows adding them, however, I discovered that the file URI scheme (file:\ protocol) to open remote server location is not supported on most browsers for security reasons Linking a UNC / Network drive on an html page

Unfortunately adding a browser extension isn't always a practical workaround.

Markus
  • 458
  • 4
  • 16