remove slash from previous_url