Fixes a bug with auto-generated routers (no longer tries to remove file extension)