this deleted code was there to replace the urls with urls that have slashes at the end right? so by creating the redirect logic you made earlier, we no longer need this code here?