Replace all forward slashes when generating an id from a view path.