Handle slashes between origin and path