Rather than programatically changing the url, why not just use a real link and programmatically set it's href when a user is logged in. We couldn't do this in PCP because of the asynchronous save action that happens when you go from PCP to PMT, but I don't think there is any other action that needs to take place in this case. Is that correct?