PAHMA-735,PAHMA-475,PAHMA-445: Fix search in searchToRelateDialog opening a new page.