Electrical – Why is this ceiling light fixture wired this way

electricallightingwiring

I'm trying to replace the hanging light below and I've gotten a little confused. Shouldn't the brown wire on the left be connected to the live (red) wires rather than the neutral? I understand that the black wires on the right are connected to the blue wire, both are neutral so that makes sense. The same goes for the earth wires. I just can't understand why it is wired in this way and how it even works?!?! Can someone clarify this for me?

enter image description here

Best Answer

The cable on the left runs to the switch. Power comes in from one of the two other cables via red, runs down the red of the switch cable to the switch. When the switch is closed, power runs back along the black and into the light via the brown. Goes thru the lamp into the blue, which connects to the common neutral black of the other two cables.

Switch legs can be confusing because the neutral coloured wire carries power back the the switched fixture. All is as it should be though.