Revealing hidden topologies in photonic crystals