As long you don't miswire the diodes over the solenoids, it doesn't matter that much.

I normaly go from the link to the relais, to the solenoids, and then directly back to the battery.