The Conservative government largely avoided being blamed during the election campaign for its failure to stop the terrorist attacks. It appealed to British communal solidarity in defiance of those who carried out the atrocities, which was a perfectly reasonable stance, though one that conveniently enables the Conservatives to pillory any critics for dividing the nation at a time of crisis. When Jeremy Corbyn correctly pointed out that the UK policy of regime change in Iraq, Syria and Libya had destroyed state authority and provided sanctuaries for al-Qaeda and Isis, he was furiously accused of seeking to downplay the culpability of the terrorists. Nobody made the charge stick that it was mistaken British foreign policies that empowered the terrorists by giving them the space in which to operate.
A big mistake in British anti-terrorist strategy is to pretend that terrorism by extreme Salafi-jihadi movements can be detected and eliminated within the confines of the UK. The inspiration and organisation for terrorist attacks comes from the Middle East and particularly from Isis base areas in Syria, Iraq and Libya. Their terrorism will not end so long as these monstrous but effective movements continue to exist. That said, counter-terrorism within the UK is much weaker than it need be.