Why is this being set up this way? This is a fairly non-standard way to set equipment up. Is it just to save money on running electric/gas to the heater? In any case my first suggestion is to put the heater on the equipment pad where it belongs. If for whatever reason that isn't happening, then I would suggest you go from the heater to the pool in the shortest path possible. Floor or wall returns, it doesn't really matter.
The heater has to be where it is to be close to the AC (it's a Hotspot FPH heater exchanger that uses the AC). Unfortunately there isn't enough space there for the rest of the pool equipment.
Would you run the water through the SWG before sending to the heater then?