Fix HTML response so that base template is still loaded from environment