Don't you enter the UK for a CTA connection to DUB? It's the same route as connections to domestic UK, as far as I'm aware, so even though you might have stayed within connections you will be technically entering the UK when you go through passport control at LHR, no?