It is said that in the double slit experiment one will prevent the interference of the photon with itself by simply observing which path the photon.
Here is a very first Google result for "double split experiment":
To find out, you might place a detector by the slits, to see which slit an electron passes through.
https://plus.maths.org/content/physics-minute-double-slit-experiment-0
A second Google result:
But if they try to find out by setting up detectors in front of each slit to determine which slit the photon really goes through
https://www.popularmechanics.com/science/a22280/double-slit-experiment-even-weirder/
Etc.
What are these detectors they talk about? How can one observe which slit the photon went through without absorbing the photon in the detector? In which case it is obviously not forming interference pattern on the screen?