Linking to server shares from a wiki

Linking to server shares from a wiki

This question is answered

I'm reposting this in the broader community:

We have some users who would like to use file:// protocol HREFs in their Wiki posts. Since this is for internal consumption and the users all share the network space of the filer, this should be ok. Unfortunately adding a HREF with the file:// protocol does not work. The anchor is stripped of everything so all that shows up in the HTML is <a>\\server\path</a>.

I found a post about the same thing from 2006/7 but the URL that was given as a link to where the solution was documented doesn't work. Here it the Post.

telligent.com/.../1022354.aspx

Can someone tell me if/how this can be enabled and where to find that information? And is the behavior different in the out of the box Enterprise 3.1 software? We are currently on 2.6 but will be moving soon to 3.1.

A side question - is there a file management plug in that could easily insert a link to a file share?

Verified Answer
  • Note that file:// URLs are starting to be ignored by browsers (specifically, Chrome won't render linked images or follow links to file:// URLs by default).  That said, you can enable file:// URLs by identifying the "file" protocol as safe to the HTML Sanitizer used on all rich content in Evolution.  To do that, 

    1. Create a communityserver_override.config file in your web/ folder.
    2. Copy the following into the file using a plain text editor (Notepad, for example):

      <?xml version="1.0" encoding="utf-8"?>
      <Overrides>
        <!-- Overrides go here -->
      
        <Override xpath="/CommunityServer/HtmlSanitization/AllowedHtml/UrlProtocols" mode="add" where="end" >
          <Protocol name="file" />
        </Override>
      
      </Overrides>
      
       
    3. Save the file.
    4. Restart Evolution (recycle the application pool, edit and save the web.config file, etc).

All Replies
  • Note that file:// URLs are starting to be ignored by browsers (specifically, Chrome won't render linked images or follow links to file:// URLs by default).  That said, you can enable file:// URLs by identifying the "file" protocol as safe to the HTML Sanitizer used on all rich content in Evolution.  To do that, 

    1. Create a communityserver_override.config file in your web/ folder.
    2. Copy the following into the file using a plain text editor (Notepad, for example):

      <?xml version="1.0" encoding="utf-8"?>
      <Overrides>
        <!-- Overrides go here -->
      
        <Override xpath="/CommunityServer/HtmlSanitization/AllowedHtml/UrlProtocols" mode="add" where="end" >
          <Protocol name="file" />
        </Override>
      
      </Overrides>
      
       
    3. Save the file.
    4. Restart Evolution (recycle the application pool, edit and save the web.config file, etc).