revert extension removal from params defined in routes