[sharing] remove trailing slash

remove trailing slash from path

fix #10160