move redirects from modal to the attached elements data