Masage the URL paths