I think this sort of thing is quite common as it avoids en-route ATC charges over France, Spain, and Portugal. The green lobby has complained about it, and, of course, the airlines themselves would prefer direct routings, but if it's cheaper that way...
Rod