delete the last slash in the url