Support for redirection when loading URL in existent dialog

This is needed for redirect form a dialog to login when the session is not longer active