Trim slash in base url & path