fixes not stripped file extensions for .json and .html (with former URL
fix)