Actually, this is pretty typical. You don’t want the enemy at your walls, generally. You surrender all initiative and advantage. The writers probably weren’t thinking this much about the battle, but this is far from a blunder - at least by the standards of the real world and not a land where portals exist.
Just give everyone free passes on military missteps, is my policy.