Security Interceptor and Modals / Iframes

I am having 1 little problem with the security interceptor. How do I
prevent it from redirecting in a modal or an iframe. I want the whole
parent window to redirect instead..

The redirected page (in the iframe) should contain some javascript..
Check to see if the parent frame exists, if so, use location.href to relocate.


what about a modal?

Well a modal is inserting content into the current page, so you return
javascript (location.href again) which needs to be executed after the
modal has been loaded.