Following the French invasion of the Confederation, Thurgau was created as a full canton in the Helvetic Republic. The new constitution of 1798 established Frauenfeld as the capital of the new canton. However, the choice of Frauenfeld was controversial. Both the cities of Winterthur and Constance were considered, but the main alternative to Frauenfeld was Weinfelden. While Frauenfeld was near the border with Zürich, Weinfelden is located in the geographic center of the canton. Frauenfeld was the capital when Thurgau was under Confederation control, while Weinfelden was a leader in the Thurgau Freedom movement. While Frauenfeld eventually remained the capital, since 1832 the cantonal parliament has met semi-annually in Frauenfeld and Weinfelden.