Remove slashes in prefix path so relative urls are maintained