remove links before detect request