The unit teleports to the top of the spire as normal. When the unit moves off of the spire, it must move onto an adjacent hex. Only heroes can move onto the fortress gate hex from here. They must do so in order to return to the fortress - they don't automatically return if they teleport to a fortress spire.