Edit/delete file path should pointing to the same site

* Fix "Unable to select files from files library" bug.