Although a magnetic field doesn't affect the photons of light directly, a magnet can distort the medium through which light passes and thereby “bend” the light rays. Light travels through space-time along a geodesic – the shortest possible path between two points on a curved surface.
Can light be bent?
Yes, light can bend around corners. In fact, light always bends around corners to some extent. This is a basic property of light and all other waves. ... The ability of light to bend around corners is also known as "diffraction".
Do magnets bend space time?
By reanalyzing the basic equations of general relativity, a researcher has discovered that magnetic fields tend to flatten and stiffen the fabric of space-time. ... According to Einstein, a hunk of matter such as a star bends space-time just as a bowling ball weighs down a rubber sheet.