WV-954: Layers and palettes permalink code restructured to map to the same state for old permalinks