[CJ-1171] fix logic for open external  links