From the Austro-Hungarian Empire to the Republic – History of Vienna https://www.wien.gv.at/english/history/overview/capital.html
Development of Vienna as the capital of the Austro-Hungarian Empire to the capital of the Republic, Separation Act (1921)
This act cut the age-old link between Vienna and the surrounding province of Lower