Replace slashes with dashes in url