This would make a lot of sense, just depends on what the Eagles want for him. Foles isn't someone I would extend for too much money.
im not sure this is a vikings move though - they'd be giving up a pick for a demonstrably worse qb even if the contract is much less expensive