Added handling for mega-menu reverts specific to the environment.