I have a residence permit for studying in Sweden and it ended on 1st of September, 2017. I applied for extending it before it ended so I have the right to stay in Sweden until I get the replay from migration. But the migration considered me a first-time applicant as I changed my studies and they asked me to apply from outside of Sweden in order to be granted the new residence permit.
So now I want to go back to my home country in Africa in order to get the new one. But I have the issue that there is no direct flight from Sweden to my home country. So If I book a flight from Sweden to my home country through Denmark for example (as transit) and they asked me about my visa it will be considered overstayed and I will face a problem.
Could I get a stamp from Sweden before I go to Denmark? Or I should book a flight from Sweden to Turkey for example (as transit) in order to escape the overstay issue?