When in the end realm i went through an end gateway to find a good place to build a witherrose farm. As soon as I went through this gateway and found out this wasn't the place where I wanted to build my farm. I wanted to go through the portal to get back to the main island. As soon as I went through the portal, it wouldn't let me and I spawned right back at the same gateway I just went through. I don't know what caused this bug to happen, because it seems to be working for all other gateways.
video with proof: https://www.youtube.com/watch?v=0ruyvl4PN9U