Thermal intramolecular transformation of key intermediates in the photooxidation of para-allyl-substituted phenyl azide.