Redirect if string found in URL

Nothing in $_GET will be set for internal rewrite rules, that’s not how they work. Look in the query vars for idx-action– either get_query_var('idx-action') or $wp_query->query_vars['idx-action'].