Avoid duplicate slash at the end of the URL