core-5777 fix sharing to use path instead of id.