fix problem with the ending slash in redirection
remove slash