When detecting a hairpin, redirect to the appropriate local extension (bug #1974)