preserve existing html extensions

detail.html must not become detail.html.html