fix sharing dialog to use path instead of UUID.related to core-5777.