I think rather than doing that, I would add a parameter which determines where the user will be redirected.