In the question Double Slit experiment with just one photon or electron, one of the answers says
There have been experiments recently where one can detect which the slit the particle went through and still the interference pattern appears.
This had 6 votes. Is it correct? If you put a detector to find out which way the particle went through won't that destroy the interference?