fix detection of links replaced by other extensions