Store the referral var in a property so it can be accessed during template_redirect. #423