I am a graduate student at a French university and I am planning to apply for the French citizenship after graduation. As mentioned on their website, I have to stay in France at least two years.
Does traveling outside the EU violate that rule? Or as long as I have a residence permit, am I considered living in France?