Managing the links in the search results

I’m struggeling a bit with the results of file indexing:

Im getting this:

Teststring
This is the teststring
\\server\share\path\test.txt

Which is fine, but the link when you click on the file or the copy sign leads to: file://server/share/path/test.txt
This leads (Windows clients) to downloading the result in downloads folder instead of opening it directly.

I like the link to be like that: \\server\share\path\test.txt so Windows clients can open files in their application directly from path instead of downloading it, which leads to redundant files in download folders…

Hwo can I achieve this? I tried path mapping, but this did not work. Do I have to reindex everything after changing path mapping?

Thanks in advance!

Modern browsers do not allow a user to access a file with the file protocol. Therefore, Fess provides a content proxy. To disable it, you can set search.file.proxy to false in system.properties.