Topologically Linked Chains in Confinement