In the The Avengers, there is a post-credits scene where Thor returns to Asgard and then a post-post-credits scene (!) where the Avengers eat shawarma together.
If Thor left, then how does he return to Earth especially given that...
...the Bifrost Bridge was destroyed in the movie Thor (2011), and it required a prohibitively immense amount of power to send him there in the first place.