The battle of Endor has sone inconsistencies and plot holes as well:
-(Something already addressed for the rebel transport ships escaping Hoth in ESB) space has infinite directions. How exactly the imperial fleet and the Death Star blocks all escape routes?
Later, Piett says the Emperor himself wants the imperial star destroyers to prevent the rebels from escaping rather than join the battle, because he has "something special planned for them". Then the Death Star fires its superlaser. Then Ackbar orders the fleet to retreat. So the rebels can escape? But I though they couldn't at that point.
-How exactly the rebel fleet couldn't detect the shield protecting the Death Star before the battle but they can instantly detect it's gone after the rebel garrison destroys the shield generator?
-The rebel fleet is between the Death Star and the imperial fleet. Lando suggests to put their ships closer to the imperial fleet so at least they won't be destroyed by the superlaser. But when the rebel fighters are flying towards the Death Star's core, both the rebel AND the imperial fleet are so close to the Death Star the Executor actually impacted its surface. At what point did they come so close to the battlestation? Or rather they instantly-teleported between scenes because the plot needed it?