I don't think we have enough information yet to make a suggestion here.
From what you describe, I don't think this is a plugin problem at all. To verify, you can have your page 22 open as a regular redirect and then have it branch back to the calling page. Just to get the plugin out of the equation. Maybe that will shed some light.