Revert "Fixed #4794 issue, setBasePath should working with /"

This reverts commit 2a040b64d466f2a5b0e21ada24a0f2c6bce5fff8.