You shouldn't be able to launch a naval invasion, request an alliance on the target, then get a risk-free and unearned foothold on the target if they accept without realizing there's an incoming invasion.
It's particularly annoying if you're maximizing trade on an island, your notifications are going by quickly, and you miss the naval invasion alert.
It's not fun, it's not skillful, and it punishes a player for not understanding a counterintuitive edge case of the game mechanics.
Alternatively, ships should still target incoming naval invasions to your territory regardless of alliance status