fix path in sharing results if it is a file in the Shared folder

fix #7329 

cc @PVince81 maybe you can have a look at it? Thanks!