Only add slash when url does not end with html.