fixed #5: return domain & path on split_url for using correct origin